/true-myth-csharp

A library for safer optional programming in C♯.

Primary LanguageC#MIT LicenseMIT

A library for safer programming in C♯, with Maybe and Result types with a traditional method-call style.

Azure Pipelines `master` build status Hosted on Nuget.org

Overview

True Myth provides standard, type-safe wrappers and helper functions to help help you with two extremely common cases in programming:

  • not having a value
  • having a result where you need to deal with either success or failure

You could implement all of these yourself – it's not hard! – but it's much easier to just have one extremely well-tested library you can use everywhere to solve this problem once and for all.