Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
solidsnack9000
· 2y ago · 0 comments
The availability of `else` in `while`, `for`, and `try` is an interesting feature of Elvish.
https://elv.sh/ref/language.html#while
Comments
[–]
hackernudes
2y ago
Python has it too, but they don't work the same way (the python 'else' always runs unless the while loop is exited with 'break').
https://docs.python.org/3/reference/compound_stmts.html#whil...