Mads Torgersen
Mads Torgersen
I suspect both ANIs and Extension Everything would help. I am skeptical about automatically rewriting user code with Roslyn-based tools, but it could be useful if it comes as a...
@jskeet: Interesting! > It couldn't cover everything though. Was that mostly a result of the current limitations of extension methods (instance methods only), or was there a more fundamental shortcoming...
I want us to address this scenario! I am a bit concerned about a feature that has multiple declarations of the same variable, so I would want to consider alternatives...
One thing I think is worth pointing out is that this feature does not complicate the language. It removes a wrinkle (I can't put a label at the end? I...
@CyrusNajmabadi > It doesn't have to. We could represent this as a labeled statement with a true 'empty' child statement. This could be a new node type, or reusing the...
Thanks @YairHalberstadt for opening the issue. I went ahead and championed it. There are good arguments for and against primary constructors, but the focus on records in C# 9.0 will...
I think this is really promising, and a good starting point. We've been circling around the possibility of being able to add statements inside expressions for many years. I like...
There are some aspects I fundamentally like about this mechanism: - it intercepts the await in a scope-based manner - it uses language level constructs to do so - it...
@stephentoub Yeah, that seems like a much lower cost approach to getting the problem solved, with most of the same basic properties. Of course relying on another (extension) method to...
I've been thinking about self-types quite a bit recently, and tl;dr, I don't think this is how we should do them. I think that self-types are better expressed in a...