JSAbrahams / mamba

🐍 The Mamba programming language, because we care about safety
MIT License
85 stars 3 forks source link

Add desugaring of match statements (without pattern matching) #98

Closed JSAbrahams closed 5 years ago

JSAbrahams commented 5 years ago

Current Issue

Match statements aren't desugared.

Description of the feature

Match statements should be desugared into something that looks like a switch.

Description of potential solution

match should be desugared into dictionary lookups, or something similar.

Additional context

We still don't have pattern matching.