Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
ejboy
11 days ago
|
parent
|
context
|
favorite
| on:
JDK 28
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:
if (obj instanceof Point p) {