Support ability to define top level record types which are respected in enum #294
Closed
matiwinnetou
started this conversation in
Syntax suggestions
Replies: 1 comment 1 reply
-
I'm not sure which language supports that I would do this
you will be pattern matching regardless
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following code:
I am unhappy about this code from Don't Repeat Yourself principle (DRY). I need to define exactly the same type: BidDatum only because I cannot define Bid outside of the scope of Redeemer. This is far from ideal albeit of course it can work like this but ergonomics and DRY suffers.
I want to be able not to have to define embedded Bid something like this:
Beta Was this translation helpful? Give feedback.
All reactions