CatalaLang / catala

Programming language for literate programming law specification
https://catala-lang.org
Apache License 2.0
1.96k stars 80 forks source link

Syntax question: deconstructing tuples #549

Open AltGr opened 8 months ago

AltGr commented 8 months ago

We agreed to introduce tuples in the surface language (see #529). This is very straightforward, but we also need a way to destruct them to get back their members.

denismerigoux commented 7 months ago

Decision of the syntax committee over #549 : full pattern matching syntax and .1, .2 syntax that desugars to full pattern matching, but no let (x, y) = z (too confusing).

AltGr commented 2 months ago

Status update: