language-ext v3.1.23 Release Notes

Release Date: 2019-05-08 // almost 5 years ago
  • The [With] and [WithLens] code-generator has been further improved:

    • ๐Ÿ‘Œ Supports generic types
    • ๐Ÿ‘Œ Supports types with constraints
    • Can ascertain the type for With parameters and can therefore ascertain whether it's a value-type or reference-type. This allows for the parameters to use Nullable<A> for value-types, therefore massively helping with implicit type-conversion.
    • โœ‚ Removed WithOpt which was playing the roll of Nullable before the type resolution that's now been added.

    โœ… > NOTE: Pre-C# 8 - you must put a constraint on your generic arguments (where A : struct or whera A : class) to allow for the null-coalescing to work correctly. The null-coalesce operator has been improved in the latest C# and so this requirement isn't needed.