Hacker News new | ask | show | jobs
by cestith 100 days ago
I was prepared for a debate on calling _exit() vs exit() vs no explicit exit in Pike. This app is pretty interesting, too though.
1 comments

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.