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

I would never use the proposed style for Java. This is simpler and easier to understand for anyone with basic knowledge of Java. Readability is more important than fancy features:

if (obj instanceof Point p) {

    foo(p.x(), p.y());

}
 help



Consider applying for YC's Winter 2027 batch! Applications are open till November 2.

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

Search: