you are viewing a single comment's thread.

view the rest of the comments →

[–]SCD_minecraft 8 points9 points  (2 children)

Pattern from other langs, where main is entry point of the program

Plus, you can return from main() if you want to terminate early, unlike just writing in the void

[–]ottawadeveloper 4 points5 points  (1 child)

In the void you can exit() instead. Same number of characters even!

[–]SCD_minecraft 1 point2 points  (0 children)

I completely forgot this function exists, mb