| ▲ | hnlmorg 3 hours ago | |
1. ‘stop’ reads like a change of execution flow (like ‘continue’, ‘break’, and ‘return’) rather than an ASCII control code. I appreciate you’re taking that from telegraphs but I wonder if you’re better off using the control code name (LF) instead? 2. Interesting. Have you got any examples of this? Every example I’ve seen thus far has been
3. I might have misunderstood the fizzbuzz example https://xoscript.com/docs.xo?chapter=examples but it looked like the following syntax set up a for-loop as a closure:
It was a little surprising because usually with languages that lean heavily into English keywords (eg the Pascal/Algol/Basic derivatives) you’d see these control flows use keywords like FOR. Heck, even C-derived languages do too.Now I’m not saying the syntax is bad. In fact part of me rather likes it. But it definitely surprised me. Similarly the IF conditions surprised me with their tenseness. Though i do like their syntax too. Regarding the fizzbuzz example, why do some conditions have TRUE while others do not. Eg
True appears to be implicit.
True here is explicit.Is it because closures require that explicitness? | ||