GH-196 pattern matching lhs #701
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "GH-196-pattern-matching-lhs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Created by: UlfNorell
Fixes GH-196
Some examples:
Created by: tolbrino
Review: Approved
This is awesome. Does it have the same efficiency footprint as the
switch
statement?Created by: UlfNorell
After
ac9e9716cb
it compiles to exactly the same code. The type checker desugars it to a switch on the tuple of all the arguments, so there's a little work to be done by the backend to get rid of the extra matching-a-tuple-against-a-tuple.For
append
the desugaring isand the backend simplifies it to
Created by: hanssv
Review: Approved
Merged by: UlfNorell at 2020-01-15 08:41:04 UTC