Replies: 4 comments
-
Instead of this, I would prefer a way to define DUs as sibling classes for more complex type hierarchies, Roslyn AST is a good example here. In general, for both records and DUs, I think there could be a compact and expanded syntax forms, the latter would provide more control over things. The IDE could help to switch between the two. |
Beta Was this translation helpful? Give feedback.
-
Since you are considering improving nullable reference type handling, can you please have a look at #2830 and the problem it describes as well. I don't think nullable reference types are very useful in web apps until the problem described in that issue is fixed. |
Beta Was this translation helpful? Give feedback.
-
Could someone post a full example using |
Beta Was this translation helpful? Give feedback.
-
The examples in the proposal are about as fleshed-out as we have, currently. We haven't yet talked about how you would construct these, for example. And yes, record types are a prerequisite for unions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/dotnet/csharplang/blob/master/meetings/2019/LDM-2019-11-13.md
Agenda:
[MaybeNull]T
Beta Was this translation helpful? Give feedback.
All reactions