DavidArno / SuccincT

Discriminated unions, pattern matching and partial applications for C#
MIT License
267 stars 15 forks source link

Breaking changes in v3.0.0 #35

Closed DavidArno closed 7 years ago

DavidArno commented 7 years ago

The following changes have been made to v3.0.0, which may break your existing code:

  1. Union<,>.Creator, Union<,,>.Creator and Union<,,,>.Creator methods now return an instance of IUnionCreator<...>, rather than UnionCreator<...>. If you are referring to your creators via a var, then no change should be needed. But any explicit references to Creator classes will have to be changed to the equivalent interface.
  2. The ITupleMatchable types have been changed to return a value tuple, rather than the older style tuples used previously. See Restructure pattern matchers to use/support new ValueTuples for details.
  3. public static ConsResult<T> Cons<T>(this IEnumerable<T> collection) has been removed and replaced with a deconstructor. See Make use of C# 7 deconstruct feature to "super charge" IEnumerable cons support for details.
DavidArno commented 7 years ago

Closing this as v3.0.1 has now been released.