3 ms·
> The nice thing is that in C++ can be implemented purely as a library. The bad thing is that they suck.
by masklinn 10y ago
> The nice thing is that in C++ can be implemented purely as a library.
The bad thing is that they suck.
- gpderetta 10y agoThey are certainly nowhere as nice as a builtin language feature, but they are not too bad. They are in fact quite usable. In the next 10 years C++ might even grow another leg and incorporate them in the basic language (together with proper pattern matching).
- Manishearth 10y agoIn languages where they are builtin they get used quite a lot to great effect, whereas this is cumbersome in C++, both with boost and the new std::variant stuff. "usable" might not cut it for something you want to use ubiquitously :) It's good that C++ has this, but it hinders some programming patterns. Of course, C++ has other programming patterns that it's great at to compensate :)