Why do enum variants with no associated values need to be represented with an Object
of type Hole
?
#224
Unanswered
neuroevolutus
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I mean, maybe? Right now we have a pretty consistent theme of always having a parameter and use Hole for dummy parameters to functions or variants. It's a real value, though. Syntactically, I wouldn't mind getting rid of it, but I think it makes parsing nontrivial. If you have a solution to this, I would be very interested. Can OCaml/Haskell only do this because they require parentheses or something? |
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.
-
Would it be possible to obviate the use of
Hole
by changing the type of thevalue
field of theVariant
class toOptional[Object]
?Beta Was this translation helpful? Give feedback.
All reactions