News for hackers. Stuff that matters.
Re:Virtual Structs Part 1: Where Rust’s Enum Shines by digikata on Tuesday May 05, 2015 @07:11PM (#9495575)
In C++ (and C for that matter) you use an enum + union in a struct to implement these virtual structs, then all the criticisms of pointer slicing, and not being able to pass by value go away. You do have to manage all that manually though, so Rust would definitely have the very nice advantage of having language support to do that cleanly.

There are no comments on this comment yet.