Replies: 1 comment
-
A couple of benefits:
But, on the whole, it's a very limited feature change. It's mostly syntactic sugar. Extension operators would have been nice (and useful), but they're not there. Another opportunity missed. I also have come to the conclusion that the 'extension system' as a whole is a stupid mistake. It's like a half-arsed trait system with zero rigour. My goal (going forward) with language-ext is to reduce the amount of extension-methods to only those needed to make the traits idea work -- because, of course, the idiotic implementation of static interface methods means we can't call trait methods directly, we have to redirect them through an extension method (some of the decision making around the new C# features is honestly insane). |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Thanks for the work on the library, it's been a joy to use on some of my projects.
I have a question about the new .NET 10 extensions feature
C# 14 will introduce this new syntax for extension methods
One big change is being able to effectively create static extensions on the type itself
Is there any potential for this to be useful in LanguageExt for either allowing new patterns or improving elegance?
Beta Was this translation helpful? Give feedback.
All reactions