Neal Gafter
Neal Gafter
@DavidArno > What would be the scope of this addition? Would it be limited to numbers, or could I do t is "hello" too, if T isn't constrained to a...
Fixed in https://github.com/dotnet/roslyn/pull/25995 for C# 8.0.
@dasMulli It was only intended to be permitted in C# 8. I will investigate and file a bug and fix VS2019 (to not allow this) if needed.
@dasMulli That was a bug that was fixed in https://github.com/dotnet/roslyn/pull/34695.
@hypeartist Your question is the subject of #26688 and #26743. These are likely bugs.
@YairHalberstadt This proposal is for the `?:` operator only.
I don’t know. I have not thought about doing something for `??`. The main reason not to do something in general is the balance between limited resources and limited benefit.
@YairHalberstadt Without a proposed specification, I have no idea. I think we'd want to review the proposed specification to decide if it were something we want or not.
The feature as proposed is intended to be the simplest possible thing that exposes (and maps almost directly to) the underlying .NET feature. No more is needed for the use...