3 ms·
Yes, that is how pattern matching works, and no, it has nothing to do with parametric polymorphism. No plans to add extra sugar to immediately switch on the ar
by Locke1689 12y ago
Yes, that is how pattern matching works, and no, it has nothing to do with parametric polymorphism.
No plans to add extra sugar to immediately switch on the arguments of a function, but I'm pretty sure that switch(arg) is not terrible overhead.
I've addressed exhaustivity in a different comment.