|
|
|
|
|
by lovelle
2953 days ago
|
|
I do not agree with that, this is not just syntactic sugar, for example in case of large 'else if' statements the complexity to choose proper branch is O(n), instead with pattern matching the chosen branch will be at constant time. |
|