Re:I Want Off Mr. Golang's Wild Ride
by steveklabnik on Friday February 28, 2020 @12:51PM
(#22444666)
C++ has been adding things like optional types; std::optional was released in C++17, there's talk of maybe pattern matching coming soon...
[ Parent
| on HN ]
Java 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.
Re:I Want Off Mr. Golang's Wild Ride
by steveklabnik on Friday February 28, 2020 @04:36PM
(#22446631)
Sure, 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.
The language maintainers adding new features to appeal to people newer to the language is not mutually exclusive with veterans of the language not adopting the new features.
Some form of optional has been in wide use in the c++ community for more than 20 years.