aeternity / aesophia

Stand alone compiler for the Sophia smart contract language
https://docs.aeternity.com/aesophia
ISC License
52 stars 19 forks source link

Allow assigning patterns to variables #336

Closed ghallak closed 3 years ago

ghallak commented 3 years ago

Fixes #231

Examples of the new syntax can be found in the file test/contracts/assign_patterns.aes.

hanssv commented 3 years ago

Some trivial conflict to sort out, but still looks good. Remember that our target audience to a large extent consists of people who are afraid of functional programming so the less scary or at least well documented we can do things the better 😅

radrow commented 3 years ago

@ghallak you forgot to add letpat in aeso_syntax_utils:fold