| ▲ | ramses0 13 hours ago | |||||||
The whole language examples seem pretty rational, and I'm especially pleased / shocked by the `loop / repeat 5` examples. I love the idea of having syntax support for "maximum number of iterations", eg:
...obviously not trying to start any holy wars around exceptions (which don't seem supported) or exponential backoff (or whatever), but I guess I'm kindof shocked that I haven't seen any other languages support what seems like an obvious syntax feature.I guess you could easily emulate it with `for x in range(3): ...break`, but `repeat 3: ...break` feels a bit more like that `print("-"*80)` feature but for loops. | ||||||||
| ▲ | zeknife 13 hours ago | parent [-] | |||||||
Ruby has a similarly intuitive `3.times do ... end` syntax | ||||||||
| ||||||||