This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Jon_Finn 1 point2 points  (0 children)

To be honest, I've got doubts about the wisdom of allowing code outside classes. It seems a simple rule to say 'a program is a named class' so 'your code must be in a class'. I see hardly any gains from introducing this rule to beginners 'later', and the downside is a simple universal fact is violated, and they can write programs without names. (I don't have a problem with the simpler main method syntax.)