On Thu, Mar 5, 2020 at 10:32 AM Warren Stephens
<wsteph...@prognoshealth.com> wrote:
> There is a bunch of "goto nonsense" added to get the Go compiler to accept 
> the 4 labels

Well then, don't use labels, so you don't need nonsense (or the dummy
parameter).

Cutting them out (https://play.golang.org/p/SUalTGaAxmx) runs just
fine, and pretty much lets you do what you want (even if most other Go
programmers, myself included, would write it differently), right? For
example:

> You can put this code into a modern editor with block expansion and 
> contraction, and contract the 3 main steps to easily show (without scrolling) 
> steps 1 to 3.

https://play.golang.org/p/SUalTGaAxmx has blocks, and presumably your
editor can contract them.


> You can then expand step2 alone and see how step2A is clearly a sub-step of 
> step2.

Well, step2A is clearly a sub-step of step2 because of indentation and
being within step2's {} curly braces. I don't think the "step2A"
label/comment really adds much.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAOeFMNV04p_C3wA7XtXAQ4wX5QsK4XGXrV1UNk1uHBEemz2wkA%40mail.gmail.com.

Reply via email to