Hacker News new | ask | show | jobs
by jronkone 5293 days ago
I don't see how unions could save space, care to explain?
1 comments

If you have multiple items of which you're only going to store one at a time but want them in the same "structure" then you use a union. (i.e. temporally disjoint)