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 useNullable<A>
for value-types, therefore massively helping with implicit type-conversion. - โ Removed
WithOpt
which was playing the roll ofNullable
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
orwhera 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.