7 ms·
> but in C, you pretty much always want the tag We aren't discussing unions in memory layout, but in type systems. This also clearly indicates you aren't quali
by jadsfwasdfsd 9mo ago
> but in C, you pretty much always want the tag
We aren't discussing unions in memory layout, but in type systems. This also clearly indicates you aren't qualified for this discussion.
- cubefox 9mo agoTo be fair, even Wikipedia talks about "untagged unions" only in the context of C. The terminology is confusing and the literature often out of date.
- jesse__ 9mo agoI believe that, by the description provided, most languages that you're talking about must actually represent 'untagged unions' as tagged unions under the hood. See my sibling comment. I'm curious