Hacker News new | ask | show | jobs
by jhbadger 101 days ago
Or the (mostly forgotten) scripting language Pike (derived from the internal language of a MUD) https://en.wikipedia.org/wiki/Pike_(programming_language)
1 comments

I was prepared for a debate on calling _exit() vs exit() vs no explicit exit in Pike. This app is pretty interesting, too though.
there 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!

I 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.