Comment on Oh yea, that's the good stuff **huffs glue**
gsfraley@lemmy.world 1 year ago
For those interested, this is because of how Rust uses value gaps to represent its nullable/enum structures. E.g., like how None
for Option
[sic] is represented internally by a 0
instead of a wrapping structure.
When you have that many layers around a unit, it will start at 0
and bump the internal representation for each Some
you turn into a None
.
Hack3900@lemy.lol 11 months ago
It’s kinda like lambda calculus numbers