Replies: 1 comment 5 replies
-
@ds26gte on Feb 24, 2018 Yes. By-order-of-argument (BOA) constructors (a pun made very long ago by GLS) are prone to user error. (I assume this desugaring will be available even for constructing instances of datatypes, rather than just for deconstructing I would also invert |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
(migrated from https://github.com/orgs/brownplt/teams/pyret/discussions/7)
I'm writing an example that has 6 fields(because I'm mimicking a table).
Four underscores, oh my! And then I add “height” and need to add underscores all over the place. Proposal below. The first desugars directly in to the above, the second means the same thing but uses shorter names:
Beta Was this translation helpful? Give feedback.
All reactions