LightAndLight / ipso

A functional scripting language.
https://ipso.dev
16 stars 1 forks source link

Non-punning record field patterns #418

Open LightAndLight opened 1 year ago

LightAndLight commented 1 year ago

Currently I can only pattern match on a record by punning its fields:

case x of
  { a, b, c } -> ...

I want to choose which fields to pun and which fields to assign custom names:

case x of
  { a, b = renamed, c } -> ...