9 ms·
The pattern matching story has not reached a conclusion, though it is getting there slowly. But that’s an important Nim philosophy - do not put into the langua
by beagle3 8y ago
The pattern matching story has not reached a conclusion, though it is getting there slowly.
But that’s an important Nim philosophy - do not put into the language things if you can efficiently and nice-syntaxly implement them in a library. Once pattern matching is sufficiently mature - if it is too slow as a macro library, or the syntax too cumbersome - it will likely find its way to a core language feature.
But if it’s good enough, it will stay a library (possibly, but not necessarily, part of the standard library); why burden the language?