Break <boolean-expr>
I show an interesting syntax sugar in Crystal Lang (
https://crystal-lang.org) - which is, btw, an interesting one to look upon, as it is quite concise and clear language.
Anyway, what about adding the following:
break if (a > 0)
It is just for the clarity, instead of
if (a>0) break
In order words: break
Why do I find it better? Because the break is more visible. In the body loop, it becomes a bit more clear where the break...