News for hackers. Stuff that matters.
Re:Java 22 Released by jonathanlydall on Wednesday March 20, 2024 @09:30AM (#39766200)
I’m also a somewhat old school C# dev and the main reason I don’t use top level statements is that they only work in a single file of an application, so that single file is different from every other file in your solution.

It’s okay if you’re only writing a single file, and it really seems intended for beginners or micro applications, but for those of us writing anything besides the most trivial, it’s merely “cute” and just adds inconsistency.

There are no comments on this comment yet.