Optuple v2.0.0 Release NotesRelease Date: 2019-08-22 // over 1 year ago
📄 There is a new type called
OptionModulethat is designed to be statically imported, like so:
using static Optuple.OptionModule;
This will make the following common methods available for use without type qualification:
This permits you to, for example, simply write
💥 Breaking Changes
The methods below on
Optionwere completely redundant. They were accidentally leaked from an older design and have been removed in this release to avoid confusion.
public static (bool HasValue, T Value) From<T>((bool, T) option)
public static (bool HasValue, T Value) ToOption<T>(this (bool HasValue, T Value) option)
public static (bool HasValue, T Value) Flagged<T>(this (bool HasValue, T Value) option)
The removal of these methods is the primary reason for bumping the major version number to 2. Otherwise, all other types and their members remain unchanged.