Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In Java you can’t just create a type. You are creating a mini app.

Classes in Java hold logic and internal mutating state. I don’t want to create this just because I need a type.

Really you want to create a struct or an interface as a type.



Luckily Java now has "Record" to partially handle the pain.



I know but the article talks about classes and almost equate the concept of a class with a type in the same way java does.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: