Replies: 2 comments
-
Hey guys, Any update on this? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'd like to see this. I have had similar issues with sum types in the past. A temporary solution would just be to make your own struct. V has unions but you have to access them within unsafe blocks. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, first of all, really great project!
Currently Sum Types behavior can be misleading to the user and problematic from performance perspective. The following example from the documentations allocates on the heap, while it seems like a normal stack allocation.
c def of World:
I would like to be able to iterate through an array of Sum Type, and dereferencing on each element can result in poor performance.
Do you consider supporting real union embedding without pointers in Sum Types?
Beta Was this translation helpful? Give feedback.
All reactions