funcool / funcool/cats

differing types for either/maybe

Open
#176 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
970
Forks
68
PR merge metrics
No merged PRs in 30d

Description

either is not itself a type, but instead Left and Right are types. Similarly, maybe isn't a type but Just and Nothing are. I think Either and Maybe should be types that can either be Left/Right or Maybe/Nothing (like the Fantasy Land versions). This would make it more consistent in terms of situations where you need to type check (such as specs), but also to be able to implement `ILookup` for `core.match` for these types

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.