News for hackers. Stuff that matters.
Re:Java in the Small by elteto on Wednesday December 18, 2024 @07:43PM (#42457145)
Because I dislike interspersing executable statements at module level with function definitions. I’d rather have all code live inside functions and have one main entry point for the script. It’s just a personal preference, nothing wrong with not doing that though.
Re:Java in the Small by jraph on Wednesday December 18, 2024 @09:49PM (#42457907)
But you could have a single main() call without the if statement, couldn't you?