Skip to content

Support for multi-case functions defined by pattern matching #264

Open
@xrchz

Description

@xrchz

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.

Metadata

Metadata

Assignees

Labels

enhancementhelp wantedhigh effortlow rewardLikely requires special techniques even to measure effectivenessuser experienceTime needed to perform tasks not related to compiler development

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions