-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapting to changes in C#14 (Extension Types) #792
Comments
AFAIK implementing interfaces is out of scope for C#13 but we could also look if the list pattern support of |
I saw the presentation about extensions and got really excited about the possibilities for Funcky 🎉 I bet that we could also do some fun things with properties that we can't right now (i.e. have |
Extension types will come with C#14 - so we won't change much this year and release a 3.5. https://devblogs.microsoft.com/dotnet/csharp-13-explore-preview-features/#update-on-extension-types |
C#14 has some new features which impact Funcky in a fundamental way: we probably want to introduce new API in a 3.x Version, but I think the old API should be phased out and removed in a 4.0 Release.
Changes which might impact Funcky:
implicit and explicit extensions
ParseExtensions
could be static extensions to make theParse*OrNone
functions be visible on the type.string.ParseInt32OrNone
could beint.ParseOrNone()
We could make the Asserts more discoverable by statically extend
Assert
in XUnit:FunctionalAssert.Ok
could beAssert.Ok
Sequence could be entirely done as a static extension on
Enumerable
.Some<T>
-Extension-Type as an explicit type to "hide"GetOrThrow()
Let's collect the ideas for new features, adapted features and how to move on here.
The text was updated successfully, but these errors were encountered: