An open API service indexing awesome lists of open source software.

https://github.com/strilanc/may

An option type for .Net
https://github.com/strilanc/may

Last synced: 4 months ago
JSON representation

An option type for .Net

Awesome Lists containing this project

README

          

Implements an option type (Strilanc.Value.May) that encourages usage based on pattern matching rather than ForceGetValue. Also includes utility methods for producing, consuming and transforming May.

Note on null: May treats null like any other value. May.NoValue is distinct from null, and both are distinct from ((object)null).Maybe().

Blog post with usage examples: http://twistedoakstudios.com/blog/Post1130_when-null-is-not-enough-an-option-type-for-c

NuGet package: https://nuget.org/packages/Strilanc.Value.May