- Generics and generic type parameters in aliases
- "closed" enum types
- Allow
ref
assignment for switch expressions - Null suppressions nested under propagation operators
- Relax rules for trailing whitespaces in format specifier
- Private field consideration in structs during definite assignment analysis
- List patterns
- Property-scoped fields and the
field
keyword - File-scoped namespaces
- Allowing
ref
/out
on lambda parameters without explicit type - Using declarations with a discard
- Allow null-conditional operator on the left hand side of an assignment
- Top level statements and functions
- Implicit usings
"It does actually seem like this pattern is the 98% case..." "I just want to disagree with something [redacted] said... [they] said [they] thought it was the 98% case that this would apply to, and I think it's 99..." "Not fair, I was going to say that."
This meeting was issue triage. There will not be much detail on any particular issue, just a general summary of the LDM's feeling and the milestone that we triaged to.
In general, we want to make improvements in this area. We should also be open to making other enhancements
in this space, such as allowing tuple syntax on the right side, or allowing C# keywords like int
. There's
also a set of features that we should investigate in parallel, such as globally-visible aliases or publicly-
exported aliases.
Triaged for C# 10 for now so that we can look at the space hollistically in the near term.
This is a solution to the very common complaints around enum usage, particularly in switch expressions and other exhaustiveness scenarios. It will also work well with DUs, and we should make sure that whatever syntax we use there works well with closed or sealed enum types as well.
Triaged for C# 10 to look at in coordination with DUs.
We like this proposal. You can already do this with ternaries, and it's odd that you can't do this with switch expressions as well. It's not high priority, but we'd be happy to see it in the language. Like ternaries, the ref version would not be target-typed.
Triaged for Any Time.
This will be a breaking change, so we need to get it in as soon as possible.
C# 9 timeframe. We need to make a syntax proposal and approve it.
In reading this proposal, we're unsure whether the request was for ignoring trailing spaces in format specifiers,
or allowing them and including them in the format specifier. We think that either way this is interpreted, it will
be confusing: trailing spaces are allowed in front of an interpolated expression and mean nothing, but for things
like DateTime
, spaces are valid parts of a format specifier and will be respected in the output. We think that
either behavior here would be confusing, with no clear indication on which the user wants.
Rejected.
This is a bug from the native compiler that had to be reimplemented in Roslyn for compat, but it's always been
one of the prime candidates for a warning wave (and is already supported as an error in the compiler via the strict
feature flag). There is some contention whether it should be a warning or an error in this wave. There is also a
concern that this will combine with the SkipLocalsInit
feature in C# 9 to expose an uninitialized memory hole in
C# with no use of unsafe
or System.Unsafe
required.
We need to look at this ASAP to make sure that we don't unintentionally expose unsafety in the language without user intention. We'll schedule this for next week.
It's possible to define such methods in metadata with the correct attribute usage and call them from C# today. This would just be about removing the restriction from defining them in C#.
Triaged for Any Time.
We have an open proposal that with a prototype. We like the general direction it takes, but we need to have more detailed design review of it and possibly make a few different decisions. This is a direction we want to take pattern matching in future releases, so we'll continue iterating on this.
Triaged into C# 10 for design work.
We've started doing design work around both of these issues. We should continue doing that.
Triaged into C# 10.
This has been a large request for a long time that reflects the default of almost every single C# file written.
There's still some design work to do, particularly in how that will affect using
statements, but it's work
that we should take on.
Triaged into C# 10.
We've heard this request a few times, and while we don't see any particular issue with this, it's not a priority for the team at this point. If a spec/implementation was provided we'd likely accept it but won't go out of our way to add it unless something else changes here.
Triaged to Any Time.
There's still some open design questions here, particularly around possibly ambiguous syntaxes. We need to keep iterating on this to find a design that we like.
Triaged for X.X, pending a new proposal.
Initial discussion shows a big LDT split on whether ?.
should be able to effectively a conditional ref. We
would need to discuss further, but aren't ready to outright approve or reject the feature.
Triage to X.X for future discussion.
This is part 2 of the work we started in C# 9 with top-level statements: designing free-floating functions that can sit on the top level without any containing type. We need to continue examining this context of scripting unification, which we plan to continue doing on an ongoing basis.
Triage into C# 10 for ongoing discussion.
This is another issue arising of discussions on top-level statements and using C# as a scripting language: attempting to make the language more brief by specifying common imports on the command line or as part of the project file is certainly one way to remove boilerplate. However, it's a controversial feature that often draws visceral reactions. We need to discuss this more and figure out if it's a feature we want to have in C#, taking into account our increased focus on scripting-like scenarios. It's worth noting that CSX has a limited form of this support already, and implementing this in C# proper would bring us one step closer to unifying the two dialects.
Triage to C# 10 for discussion.