Replies: 2 comments
-
Would these warnings only be suppressed for the "standard" Linq implementations that have the expected semantics, or for all query expressions (even those that do not have the expected semantics)? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Note that |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Nullable analysis of LINQ queries
Champion issue: #8999
Summary
Nullable analysis of LINQ queries (LDM expressed interested to handle
Where
, needs design proposal)Motivation
Range variables in LINQ queries are currently treated as oblivious to minimize annoyances.
Most of the annoyance results from our inability to recognize method calls that filter out
null
elements, such as.Where(i => i is not null)
.Detailed design
TBD
Unresolved questions
Where
methods?Design meetings
Split issue from #3868
https://github.com/dotnet/csharplang/blob/main/meetings/2022/LDM-2022-09-28.md#nullability-improvements
https://github.com/dotnet/csharplang/blob/main/meetings/2024/LDM-2024-09-06.md#nullable-analysis-of-linq-queries
Beta Was this translation helpful? Give feedback.
All reactions