4 ms·
Which would have been a great idea if it had been in Java 1.0 :-( Alas, the horse has left the barn. Much like immutability: if it had been the default, with
by Roboprog 10y ago
Which would have been a great idea if it had been in Java 1.0 :-(
Alas, the horse has left the barn.
Much like immutability: if it had been the default, with a "DANGER: mutation ahead" keyword required otherwise, that would arguably have been good. But it's too late, now. (Java) Beans, beans, the magical fruit...
- galdosdi 10y agoYeah, it's a bummer dealing with backwards compatibility. Don't get me started on guava Optional vs JDK8 Optional. But at least you can stick to just using Optional and no nulls in new code you write, and only using nullables to communicate with existing libraries.