3 ms·
> I would be extremely surprised to learn that this feature is as capable as Rust's lifetime system. So would I. It isn't. But we're working on much more than
by WalterBright 10y ago
> I would be extremely surprised to learn that this feature is as capable as Rust's lifetime system.
So would I. It isn't. But we're working on much more than this in order to provide guaranteed memory safety (although using a very different approach than Rust's).
It's just that Rust does not stand alone with this particular example.
- tatterdemalion 10y agoI think a key fact about this example is that `&Y` is just another type of value which can be used like any other; if you can't return it our put it in a vector or whatever its really not comparable.