3 ms·
I was pretty surprised, how the heck are unions different from enums? I read that they're essentially the same as C unions (~untagged enums), but I have no clu
by jmcomets 9y ago
I was pretty surprised, how the heck are unions different from enums?
I read that they're essentially the same as C unions (~untagged enums), but I have no clue how `match` works in that case.
- Rusky 9y agoA pattern on a union just interprets it as the specified field. It doesn't try to determine which one was actually written to last.