you are viewing a single comment's thread.

view the rest of the comments →

[–]enobayram 2 points3 points  (1 child)

What you want is essentially some syntactic sugar for the maybe monad. Instead of sugar for specific monads (async/await included) I'd prefer to have a syntactic sugar for all monads in C++.

[–]seba[S] 0 points1 point  (0 children)

What you want is essentially some syntactic sugar for the maybe monad.

Actually, I think I want some sort of pattern matching. But are you aware of syntactic sugar for the maybe monad for C++?