strilanc / may Goto Github PK
View Code? Open in Web Editor NEWAn option type for .Net
License: Other
An option type for .Net
License: Other
Implements an option type (Strilanc.Value.May<T>) that encourages usage based on pattern matching rather than ForceGetValue. Also includes utility methods for producing, consuming and transforming May<T>. Note on null: May<T> 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
When trying to install on a project with netstandard1.5 i get the following error:
DEBUG: Checking compatibility for Strilanc.Value.May 1.0.2 with .NETStandard,Version=v1.5.
ERROR: Package Strilanc.Value.May 1.0.2 is not compatible with netstandard1.5 (.NETStandard,Version=v1.5). Package Strilanc.Value.May 1.0.2 supports: portable-net40+sl4+win8+wp7 (.NETPortable,Version=v0.0,Profile=Profile2)
ERROR: One or more packages are incompatible with .NETStandard,Version=v1.5.
DEBUG: Incompatible packages: 1
Not sure if there is something in the package that makes it incompatible. But if it is possible i would love to be able to install it in my netstandard1.5 project. :)
When creating the NuGet package, please create a dependency on Code Contracts to ensure that those using Code Contracts and the May library will build successfully.
Hi,
I really like this lib and have nothing to complain about technically so far. But as I just noticed, googling for this is hard. Typing C# May leads to all kinds of questions on SO or some other place related to C#, but not to this github page nor to the nuget entry.
I can't say if there is anything you could do about that, just wanted to let you know. Otherwise, this is some greate piece of code :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.