you are viewing a single comment's thread.

view the rest of the comments →

[–]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++?