3 ms·
I've heard that or-patterns can result in superlinear blowup in the number of cases, which is why Haskell compilers have not implemented it so far.
by pcwalton 11y ago
I've heard that or-patterns can result in superlinear blowup in the number of cases, which is why Haskell compilers have not implemented it so far.
- thoughtpolice 11y agoAs far as I know, that's never really been a reason as to why we haven't implemented it in GHC. It's much more likely just that nobody has ever gotten around to implementing it. Shouldn't be especially hard, I imagine.
- gohrt 11y agoHow so? There's one case per branch. It's no more blowup than writing out the branches by hand would be.