3 ms·
> Why "BalancedI8"? Because now that we've removed this most negative number (to provide a niche) the remaining value is symmetrical, it goes from -127 to +127
by lr1970 2y ago
> Why "BalancedI8"? Because now that we've removed this most negative number (to provide a niche) the remaining value is symmetrical, it goes from -127 to +127
Actually instead of just removing the most negative number i8::MIN you can appropriate its bit patter to denote "missing value" (or "null" if you wish) so that your new data type is symmetric and nicely "nullable".
- tialaramex 2y agoI can't tell whether you don't know what a Rust niche is, or you do but you thought we didn't In case you didn't know yes, that's how Rust's niches work and so that's what we're talking about in this sub-thread.