ModularM
Modular2y ago
17 replies
gryznar

pattern matching as switch - case

Is it possible to implement upcomming pattern matching more like switch-case in C rather than like in Python in which it is powerful syntax sugar for if-else? My question araises, becase switch-case is much more performant in non-trivial examples and it will be really nice to use it instead of if-else and have improvements in performance because of that
Was this page helpful?