News for hackers. Stuff that matters.
Re:Announcing Rust 1.19 by jmcomets on Friday July 21, 2017 @09:07AM (#14820147)
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.

Re:Announcing Rust 1.19 by Rusky on Friday July 21, 2017 @02:06PM (#14822580)
A pattern on a union just interprets it as the specified field. It doesn't try to determine which one was actually written to last.