3 ms·
Why can’t you just wrap handles into unique/referenced types?
by tomp 8y ago
Why can’t you just wrap handles into unique/referenced types?
- habitue 8y agoYou can, but that only solves part of the problem: keeping pointer types from being used as the wrong type. You still have the equivalent of use-after-free to guard against which the lifetime system tracks for you for pointers, but not for handles.
- the_mitsuhiko 8y agoYou can associate lifetimes with handles just fine.