-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Labels
questionFurther information is requestedFurther information is requested
Description
PR #29 highlighted how there's a set of functions from Scala\Haskell that we haven't considered. In particular Try.map from Scala acts as a functor on Try objects, applying a function in case no exception was thrown.
Currently we have Either.try which maps a function application to an either, i.e., :ok if the function succeeded, :error if an exception was thrown.
A few questions from the top of my head:
- do we need
Try.mapwhen the user could use thewithconstruct? (or justmapafter theEither.try) - are there other functions outside of
Either.trythat we could implement? - would it make sense to treat
Tryas a separate module (i.e. not piggybacking oneither)?
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested