heliaxdev / extensible-data

Generate the boilerplate for the Trees That Grow pattern
https://heliaxdev.github.io/extensible-data/Extensible.html
5 stars 0 forks source link

Allow the pattern synonyms to reorder the fields somehow #4

Open andy-morris opened 4 years ago

andy-morris commented 4 years ago

In Juvix Core we have a nameless representation by default, with names being introduced as an extension in HR (and HRAnn). By default, this unfortunately means that λx. t is represented as Lam t x. So it would be nice if the fields could be reordered.

A related idea is to have annotations which are products be split up in the patterns, e.g. being able to write (in Ann) (π f: s) (ρ e: t) as App π f s ρ e t instead of App f e (π, s, ρ, t)