3 ms·
I thought this was going to be an article by Rob Pike on control flow in golang...
by vmilner 7mo ago
I thought this was going to be an article by Rob Pike on control flow in golang...
- jhbadger 7mo agoOr the (mostly forgotten) scripting language Pike (derived from the internal language of a MUD) https://en.wikipedia.org/wiki/Pike_(programming_language) https://en.wikipedia.org/wiki/Pike_(programming_language)
- cestith 7mo agoI was prepared for a debate on calling _exit() vs exit() vs no explicit exit in Pike. This app is pretty interesting, too though.
- em-bee 7mo agothere is also the use of return from main(), in particular return -1; which doesn't exit. i was debating whether i should post this discussion on the pike language discord, but now i will. you two made my day!
- cestith 7mo agoI don’t program regularly in Pike. I’ve played with some of the examples from various benchmark and language comparison sites for the most part, but given additional free time it’s a language I’d like to actually use sometimes. I therefore wasn’t even aware of returning -1 from main() doing that. It’s an interesting thing. I’d like to read about that, but maybe not enough to join the language discord.