CakeML/cakeml
Support for multi-case functions defined by pattern matching
Ouverte
#264 ouverte le 23 avr. 2017
enhancementhelp wantedhigh effortlow rewarduser experience
Métriques du dépôt
- Stars
- (1 169 étoiles)
- Métriques de merge PR
- (Métriques PR en attente)
Description
Function declarations currently only accept variables as arguments, but in SML one can do pattern matching with a declaration. CakeML AST does not support that, but the parser could generate the corresponding case expression on the tuple of argument variables. Or the AST could be augmented, if necessary, to do something more sophisticated.