2 ms·
For a high-level API, shouldn't this be expressed with types such as a `Result<T,E>` at the library level? edit: now that I think about it, that would require
by skulk 6y ago
For a high-level API, shouldn't this be expressed with types such as a `Result<T,E>` at the library level?
edit: now that I think about it, that would require some really nice optional chaining syntax to be even slightly usable.
- fouronnes3 6y agoOh now I'm curious if IEEE 754 NaN rules are isomorphic to a number optional type with monadic chaining syntax
- SAI_Peregrinus 6y agoBasically. And you can stick error codes in the value too, so you can know down the line what caused the NaN.