Hacker News new | past | comments | ask | show | jobs | submit login

"was there really a point to the illusion of wrapping the entrypoint main() function in a class (I am looking at you, Java)?"

Far be it for me to defend Java (I hate the damn thing), but: main is just a function in a class. The class is the entry point, as specified in the command line; main is just what the OS looks for, by convention. You could have a "main" in each class, but only the one in the specified class will be the entry point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: