Find a nicer way to specify (and INTERFACE) Poor Man's Powersets #1245
Replies: 1 comment
-
I really like the generic pattern, I'm adding a little bit of extra syntax:
There are several things going on here:
Within the pattern, there is a possibility of rules, which makes perfect sense here:
Sorry for being lazy in the last rule. The above pattern should give rise to all sets of a given type (thanks to concepts being finite). Together with subtyping, we can do dangerous stuff (i.e. stuff of which I don't fully oversee the consequences) like saying I don't quite know how to implement a small delta in this direction, but on a whole, it's definitely a direction in which I want to see Ampersand go. It would be nice to see infix names for concepts too, so we can make on-the-fly products, sums, lists... this way too. (Ok, we don't need infix names for this, but it would look nicer) |
Beta Was this translation helpful? Give feedback.
-
Thinking about making prerequisites in Hawai more flexible: Why not allow a student to register for destination Hawai if they have passed Surfing, or if they have passed World Religions and History?
Hack:
Conceptually (in a future version of Ampersand 😉 ):
With generic
Beta Was this translation helpful? Give feedback.
All reactions