News for hackers. Stuff that matters.
Re:Five Years of Rust by brutt on Friday May 15, 2020 @11:24AM (#23193227)
It's good thing, but it leads to error in code which must talk to C or network, where enum's are not cast in stone.
Re:Five Years of Rust by CameronNemo on Friday May 15, 2020 @12:16PM (#23193878)
You really should not be casting data structures sent over the network directly to local data structures, unless you are using capnproto or another zero copy protocol that does that safely.
Re:Five Years of Rust by mlindner on Saturday May 16, 2020 @07:34AM (#23202590)
You can assign any value to a C enum, they literally are just integers.