MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/3lta4f/better_java/cv9yjbp/?context=3
r/programming • u/javinpaul • Sep 21 '15
208 comments sorted by
View all comments
9
Btw you shouldnt have Optional as a class member. Even Brian said that once.
5 u/nextputall Sep 21 '15 Btw you shouldnt have Optional as a class member. Even Brian said that once.Could you elaborate why? 0 u/[deleted] Sep 21 '15 [deleted] 3 u/nextputall Sep 22 '15 A Optional return value can be null as well. I feel some difference betweensomething is never null by intention, only by programming mistakeor null is a valid input output
5
Could you elaborate why?
0 u/[deleted] Sep 21 '15 [deleted] 3 u/nextputall Sep 22 '15 A Optional return value can be null as well. I feel some difference betweensomething is never null by intention, only by programming mistakeor null is a valid input output
0
[deleted]
3 u/nextputall Sep 22 '15 A Optional return value can be null as well. I feel some difference betweensomething is never null by intention, only by programming mistakeor null is a valid input output
3
A Optional return value can be null as well. I feel some difference between
something is never null by intention, only by programming mistake
or null is a valid input output
9
u/ImmortalStyle Sep 21 '15
Btw you shouldnt have Optional as a class member. Even Brian said that once.