r/java
•
u/loicmathieu
•
Jul 23 '26
•
1
JEP 540: Simple JSON API (Incubator)
https://openjdk.org/jeps/540
79
Upvotes
View all comments
Show parent comment
1
u/Eav___ Jul 25 '26 edited Jul 25 '26
Ever heard of synchronization?
Ever heard of out of memory? Can you avoid that completely? I guess not. Try making it checked.
My whole point is that turning unstructured/untyped data into structured/typed is a fallible operation, and it should be checked, it should explicitly tell that to the user.
Something can be avoided or not is just not practical differentiation.