Re:Rust and Nix = easier Unix systems programming
by Rusky on Thursday April 14, 2016 @03:47PM
(#11499792)
The return value is going to stay in a register the whole time anyway, so a char won't save you anything.
But regardless, the point of that sentence is nothing to do with memory usage, but with semantics. Whether you or the compiler packs all the information into 3 bits or 3 words, that's fine, as long as the language helps you distinguish the parts.
But regardless, the point of that sentence is nothing to do with memory usage, but with semantics. Whether you or the compiler packs all the information into 3 bits or 3 words, that's fine, as long as the language helps you distinguish the parts.