Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pcwalton
· 11y ago · 0 comments
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.
Comments
[–]
thoughtpolice
11y ago
As 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 ago
How so? There's one case per branch. It's no more blowup than writing out the branches by hand would be.