Skip to content

BasicResults 1.0.0

Choose a tag to compare

@nsmela nsmela released this 17 Sep 04:18
· 4 commits to main since this release

First release. Three small value types for modelling failure and absence without exceptions or nulls:

  • Error: a stable code and a human-readable description, compared by value.
  • Result and Result<T>: success or failure. They convert implicitly from a value or an Error, and chain with Map and Bind.
  • Maybe<T>: an optional value with structural equality, and ToResult for when it becomes required.

Targets netstandard2.0 with no dependencies. Tested on .NET 8.

dotnet add package BasicResults

nuget.org/packages/BasicResults/1.0.0