Comment

Comment by ejboy

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());

}
parent ejboy 12 days ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton