While I get your proposal, I’d think this would make dealing with float hell. Do you really want to .unwrap() every time you deal with it? Surely not.
One thing that would be great, is that the / operator could work between Result and f64, as well as between Result and Result. Would be like doing a .map(|left|left/right) operation.
While I get your proposal, I’d think this would make dealing with float hell. Do you really want to
.unwrap()
every time you deal with it? Surely not.One thing that would be great, is that the
/
operator could work betweenResult
andf64
, as well as betweenResult
andResult
. Would be like doing a.map(|left| left / right)
operation.