Skip to content

Purpose of ErrorType? #10

Open
Open
@indragiek

Description

@indragiek

I'm a bit confused as to the purpose of using ErrorType as the type for the Error case of Result. Doesn't this mean that if I wanted to pull an NSError out of the enum, I would have to cast it to an NSError to do anything with it? It seems like Result should only support errors of type NSError, and an implementation of Either should be added to this library for the case where both the left/right values are parameterized (like when you want to use something other than NSError).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions