4 ms·
While this is true in general, we are talking about a library feature that many people want to move into a language feature, specifically because of the drawbac
by steveklabnik 6y ago
While this is true in general, we are talking about a library feature that many people want to move into a language feature, specifically because of the drawbacks of it being a library.
- ncmncm 6y agoThat a library implementation of pattern-matching would be unsatisfactory exposes a weakness in the core language. Usually, it is better to strengthen the language to the point where a library component can do the job. Sometimes, though, that is too hard, and you give up and do it directly in the core language. It should always be noted as a failing. Something similar happened with coroutines, although what we did get has hooks that a library should be able to patch into, to achieve wonders not yet seen.
- steveklabnik 6y agoYeah, I do agree that this is the best way to go. We'll see!