4 ms·
C++ has been adding things like optional types; std::optional was released in C++17, there's talk of maybe pattern matching coming soon...
by steveklabnik 7y ago
C++ has been adding things like optional types; std::optional was released in C++17, there's talk of maybe pattern matching coming soon...
- samatman 7y agoJava has Optional as well, but as you well know, you can't just bolt ADTs onto the side of a language and wash your hands of it. The whole system has to be designed around it to get the benefit of it. Java programmers will be checking for null until the last line of Java is written.
- steveklabnik 7y agoSure, but the argument was that folks would reject it, when they in fact have explicitly added it. Its effectiveness is another story; not only along the axis you were talking about, but also others, but that's a separate conversation.
- pron 7y ago> Java programmers will be checking for null until the last line of Java is written. Not necessarily. Adding nullability types to Java is a smaller undertaking than adding generics was.