Open stylewarning opened 5 years ago
Pattern matching is a core and essential part of ML. Implement it. Syntax will be
<match> ::= (coalton:match <var> <clause>*) <clause> ::= (<pattern> <result>) <pattern> ::= <blank pattern> | <variable> | (@ <variable> <pattern>) | <NullaryConstructor> | (<NaryConstructor> <pattern>*) <variable> ::= a symbol excluding '_' <blank pattern> ::= the symbol '_'
Types should be inferred, exhaustiveness checking should happen, etc.
A subset of the above is now implemented, allowing for
<NullaryConstructor> (<NaryConstructor> <variable>+)
Pattern matching is a core and essential part of ML. Implement it. Syntax will be
Types should be inferred, exhaustiveness checking should happen, etc.