Equivalent of C++ (nameless) union with nameless structs #1849
Labels
leads question
A question for the leads team
long term
Issues expected to take over 90 days to resolve.
(C++)
I understand that choice types are tagged unions, but there is no example or mention about how someone would implement the above code in Carbon. Also there is no mention of nameless unions. I would imagine it could be somewhat like below.
(Carbon)
While something like this isn't essential, the following points are why this should be added if it is not already;
Side note: Are you able to declare vars like
var x, y, z, w: f32
?The text was updated successfully, but these errors were encountered: