montylang / monty

Language from a parallel universe where Python is functional
https://montylang.github.io/docs/
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Case / Match statement #4

Closed elimirks closed 3 years ago

elimirks commented 3 years ago

We should support case / match statements, supporting the same pattern matching that our functions do

elimirks commented 3 years ago

syntax idea:

case Just(3):
  Just(x):
    y = x * 7
    y + 4
  _:  7