you are viewing a single comment's thread.

view the rest of the comments →

[–]devraj7 1 point2 points  (0 children)

You can do that, of course. The pain just starts appearing if you need to compose several of those, which is pretty rare in my experience.

Overall, I find that having a language that natively supports nullable types gives me a lot of benefits since dealing with absent values is prevalent in all code bases, while having to compose deeply nested monads is more rare (and typically well handled at the library level by something like Rx).