-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented dotnet/csharplang#323 #18526
Comments
@lachbaer To be clear, neither of these are my proposal. The first was proposed by @jacekbe and the second by @lachbaer (you). Neither of these proposals has a champion in the LDM, and neither has been through the language design process to result in a tentative specification against which I could review your implementation. I am willing to champion the proposal dotnet/csharplang#323 by @jacekbe and get it in the queue for LDM triage. I'm not so excited about dotnet/csharplang#328, but I'm willing to point it out to the LDM as one approach to dotnet/csharplang#323. |
I think we would more likely want dotnet/csharplang#398 rather than dotnet/csharplang#328 . |
Sorry, no offense :-) You opend #323, therefore...
That would only be the logical advance for pointers 👍
Thank you. Anyhow, I took the programming of it as an exercise. 😄 I would like to state some arguments for #328 here: Pro:
Contra:
Neutral:
Maybe, you can make use of the arguments. 😊 |
@lachbaer I have noted in dotnet/csharplang#418 that you have offered an implementation. Thank you! Please hang on to it in case we decide to move ahead and schedule it for LDM design and implementation. In the meantime I'm closing this issue as it isn't actionable. |
@gafter
I have implemented your proposal dotnet/csharplang#323 together with dotnet/csharplang#328 (default coalescing operator). It wasn't so complicated after all. Maybe there are some side-effects I have overseen?
Currently there are no tests.
I would like to submit a PR for a first review.
(See https://github.com/lachbaer/roslyn/tree/DefaultCoalescingOperator)
Update:I just encountered a slight problem. In case of
the behaviour of a default-coalescing-operator is completely arbitrary. I've got to sort that out, first!Sorted that out. It behaves as expected by the specs (
c?.x
gets converted to (int?) and thus has no ambiguity).The text was updated successfully, but these errors were encountered: