Loïc Denuzière

Results 263 comments of Loïc Denuzière

Also, if we add `ofNullable` (and decide what to do for null), then surely we should also add `ofOption` with similar semantics. There's also the `ofObj` / `toObj` pair.

> Having the error value as an user-provided argument seems like a better choice Yeah, that's how I usually implement it in custom utils modules. It also corresponds to FsToolkit.ErrorHandling's...

There is actually an alternative to passing a dummy value, which is to make the type parameters explicit. Currently it is quite verbose because you need to repeat the constraint:...