3 ms·
While this is pretty cool, it would be hard to make it generalize without adding lifetimes or something (feel free to lift that concept off Rust!) While the po
by Manishearth 10y ago
While this is pretty cool, it would be hard to make it generalize without adding lifetimes or something (feel free to lift that concept off Rust!)
While the post gives the example as a simple struct field thing, that example itself isn't where it actually becomes important. It becomes important when you have structs holding pointers to the interiors of other structs, and more complex reference-returning semantics. I illustrate this in a particularly complex situation in http://manishearth.github.io/blog/2015/05/03/where-rust-really-shines/ http://manishearth.github.io/blog/2015/05/03/where-rust-real...
But yeah, D is getting there :)