Replies: 4 comments 21 replies
-
Is there a reason anonymous syntax couldn't be supported with nominal unions? Basically, for a declaration of an |
Beta Was this translation helpful? Give feedback.
-
Honestly, such happy days! 😄 |
Beta Was this translation helpful? Give feedback.
-
How do closed enums work if you cast to object? closed enum Dog { Rover = 1, Lassie }
var d = (Dog)(object)3; //Presumably this compiles - will it fail at runtime? I'm assuming there is no runtime validation? The proposal does not make that clear. |
Beta Was this translation helpful? Give feedback.
-
Is this thread safe? public sealed record Closed : GateState {
public static Closed Instance => field ??= new Closed();
} |
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/main/meetings/2025/LDM-2025-06-25.md
Agenda
Beta Was this translation helpful? Give feedback.
All reactions