C++ Now 2019: André Bergner Matchine: Pattern Matching for Open Sum Types
Presentation Slides, PDFs, Source Code and other presenter materials are available at: C++17 offers std::variant to model closed sum types and do pattern matching on them using std::visit (and eventually std::overloaded). While this is not as powerful as pattern matching in languages having this built in, it still allows to have a decent declarative design using mere library features. It is also common to have this problem over an underlying open
|
|