Open Abhiroop opened 3 years ago
When functions are desugared pattern matches are turned into case expressions, and right now I believe it assumes there to be more than one pattern. Should be fairly simple (famous last words) to make it recognise that if there is only one pattern and that pattern is a variable, no case is needed.
Here is an example program:
This currently gets desugared to:
This can be further simplified to: