Replies: 2 comments 11 replies
-
You may disagree, but my feeling is that the LDM focused too much on the problems than the goal, and were revising the goal according to the problems. |
Beta Was this translation helpful? Give feedback.
-
Gonna throw a little more spaghetti at the wall, based loosely on Scala 3's approach to extensions, which use a primary constructor-like syntax to declare a separate parameter list for the extension target. That lets you specify the type and parameter name of the extension target with a little more flexibility. Also, allows Also continues to allow public partial extension Enumerable(this IEnumerable source) {
public IEnumerable<T> OfType<T>() { ... }
}
public partial extension<T> Enumerable(this IEnumerable<T> source) {
public IEnumerable<T> Where(Func<T, bool> predicate) { ... }
}
public partial static class Enumerable {
public static IEnumerable<T> Empty<T>() { ... }
} |
Beta Was this translation helpful? Give feedback.
-
https://github.com/dotnet/csharplang/blob/main/meetings/2024/LDM-2024-10-14.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions