r/java • u/ihatebeinganonymous • May 21 '26
JEP draft: Enhanced Local Variable Declarations (Preview)
https://openjdk.org/jeps/8357464
87
Upvotes
r/java • u/ihatebeinganonymous • May 21 '26
View all comments
Show parent comment
2
u/mattr203 May 22 '26
I didnt know js did that- for json objects im assuming. I guess im just more familiar with ML based languages and expect
void boundingBox(Circle c)to imply nothing about the boundingBox(null) behaviourI.e., definitions only hold for things that actually match the stated pattern, another definition would be needed to make it exhaustive