- cross-posted to:
- programmer_humor@programming.dev
- cross-posted to:
- programmer_humor@programming.dev
Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?
You must log in or register to comment.

I recall that Gondor very much needed a king to return, like it was a pretty big deal that returning as king to Gondor was a necessary deal. Gondor needed Aragorn to return as king. It’s all documented in the third book, The Return of the King.
It makes more sense if you’re used to shell scripts.
It’s less of a main, and more of a “don’t do this if being imported.” You can just throw code without that block and it will run.



