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

fwiw in modern-Java they have data classes:

  record Foo(String theImplementationAndStyleOfDataClasses) {}
The string is final. While sadly there is no elvis operator, the Optional type helps:

  evlis.map(e->e.operator).map(e->e.chaining)
I still strongly dislike working in Java but Java 23 is a long way ahead of the Java 6 I first learnt Java with.


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

Search: