Maybe monad in C# Optional

 Published On

We began to have “craftmanship” meetups (private for the moment) at work. My colleague presented a C# library

that implements Maybe monad named Optional.

From the github readme page :

Optional is a robust option/maybe type for C#. … Optional is a strongly typed alternative to null values that lets you:

  • Avoid those pesky null-reference exceptions
  • Signal intent and model your data more explictly
  • Cut down on manual null checks and focus on your domain

Bonus : Eric Lippert wrote a series of 13 articles on Monads.

Tags:   functional programming   maybe   monad   optional   c#   library


comments powered by Disqus

© 2017 - Mechanical Object. All rights reserved
Built using Jekyll