Re:Why Rust for Low-Level Linux Programming?
by crzwdjk on Saturday June 11, 2016 @08:11AM
(#11883171)
Rust actually does a bit of this internally in the form of the null pointer optimization. If you have an Option<&T> (or Option<*T>) value, it's actually stored as a single pointer-sized value, with None being represented by a null pointer on the assumption that null is not a valid pointer.
[ Parent
| on HN ]
There are no comments on this comment yet.