![](https://squidex.jugru.team/api/assets/srm/566b594b-282b-4c33-9cbc-b68e26cab5f4/sergej-larin.jpg?cache=3600&width=74&height=74&mode=CropUpsize)
Sergey Larin
Company: PVS-Studio
Talk type: Partner’s talk
Nobody likes writing a lot of if else if
code. In many languages, pattern matching exists to solve this problem.
Unfortunately, C++ only has it for std::variant
via std::visit
.
We'll discuss how to implement your own simple pattern matching solution using the example of working with AST nodes.
Company: PVS-Studio