4 ms·
Interesting. To me there’s very little totally new syntax, and the benefits are considerable. It’s basically just being able to match on the existing structured
by Sharlin 7y ago
Interesting. To me there’s very little totally new syntax, and the benefits are considerable. It’s basically just being able to match on the existing structured binding patterns, as well as on type tags when the expression is polymorphic.
- stinos 7y agothe benefits are considerable Exactly. Admittedly with enough modern C++ experience and having used pattern matching I find the syntax pretty readable and clear. But even if it weren't I'd probably still be +1 pattern matching.