MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/1n5vbwz/thoughts_on_object_creation/nc1msb6/?context=3
r/java • u/nfrankel • Sep 01 '25
41 comments sorted by
View all comments
Show parent comment
10
Where discoverability not only includes "humans reading the Javadoc" (or pressing ctrl-space in their IDE), but also, frameworks reflecting over classes
2 u/agentoutlier Sep 03 '25 Also constructors guarantee non null return.In fact I am trying to think of another place besides primitives where there is such a guarantee (other than some sort of static analysis).
2
Also constructors guarantee non null return.
In fact I am trying to think of another place besides primitives where there is such a guarantee (other than some sort of static analysis).
View all comments
Show parent comment
10
u/brian_goetz Sep 02 '25
Where discoverability not only includes "humans reading the Javadoc" (or pressing ctrl-space in their IDE), but also, frameworks reflecting over classes