Replies: 1 comment 8 replies
-
We've never thought of using it like this, but I guess there's no reason not to allow this. This should be possible in the new sum type implementation, right @danieldaeschle? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to implement a tiny lisp using V I kind of came up with this definition for an Expression sum type
When using this I will need match this way
However the compiler is getting confused thinking that the []Expr branch in the match statement is initializing an array or a map.
What would be an idiomatic way of implementing something like this in V.
thank you!
Beta Was this translation helpful? Give feedback.
All reactions