3 ms·
Given that the Option type has existed in programming languages other than Java for decades I don't think it makes sense to call it a "typical Java" thing. I c
by harryh 11y ago
Given that the Option type has existed in programming languages other than Java for decades I don't think it makes sense to call it a "typical Java" thing.
I can see how a C/Asm programmer wouldn't like it though. Very different mindsets. :)
- userbinator 11y agoThe difference is that other languages which originally had the Option type don't have null, so it's the only option. I meant it's typical of Java to take features from other languages, resulting multiple slightly-different-but-incompatible ways to achieve the same thing.
- harryh 11y agoI certainly agree that Java would be a much better language if NULL could be eliminated completely. Backwards compatibility though... sigh