Re: [go-nuts] Loop label style question

2023-10-02 Thread Kurtis Rader
I am writing a program that uses branch labels. It uses your example pattern to break out of a loop when a particular `select` situation occurs. Branch labels are not indented because they represent unusual locations for modifying the flow of control. This seems perfectly cromulent to me. A branch

[go-nuts] Loop label style question

2023-10-02 Thread 王富民awaw
I wonder does anyone know the reason and history of why loop labels are styled as such: * Labels are *unindented*. All Go constructs, such as fields in structs indent to the right. Why does loop labels unindented to the left? * Labels start with capital letters. Since all other Go identifie