DylanSp / faust-lang

An experimental language for exploring contract-based programming
MIT License
0 stars 0 forks source link

Figure out syntax for pattern matching #8

Open DylanSp opened 1 year ago

DylanSp commented 1 year ago

Presumably should be an expression, not a statement.

DylanSp commented 1 year ago

Note - for stage 1, pattern matching can only match on the different variants of a sum type, not term-level values.

DylanSp commented 1 year ago

Decided to make match a statement, since Faust is more statement-oriented in general.