3 ms·
The availability of `else` in `while`, `for`, and `try` is an interesting feature of Elvish. https://elv.sh/ref/language.html#while https://elv.sh/ref/language
by solidsnack9000 2y ago
The availability of `else` in `while`, `for`, and `try` is an interesting feature of Elvish.
https://elv.sh/ref/language.html#while https://elv.sh/ref/language.html#while
- hackernudes 2y agoPython 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#while https://docs.python.org/3/reference/compound_stmts.html#whil...