this post was submitted on 30 Sep 2023
14 points (100.0% liked)

C++

1755 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] lysdexic 2 points 1 year ago

I don't think it's inconsistent. Optionals are monads by design. It would not make any sense to leave basic monadic operations out just because non-monadic components exist.

If anything, C++ is missing an either/neither monad, and specializations such as a result monad.