Currently with 37 votes in, the poll shows that 97% think that labeled break
should not be used for early exits in closures. I want to point out to the small minority of us who thought that labeled break
should be used for that purpose, that it's important that people write code in idiomatic manner because code consistency makes it easier for other people to read. This is why I introduced this as a warn-by-default lint, which would have forced everybody along the ride. Therefore we, the small minority, should not start using labeled break
s for early exists in closures, even though we thought that it was a good idea - code consistency is more important than our personal preferences.
18 Likes