-
Notifications
You must be signed in to change notification settings - Fork 84
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
Feature: An alternative approach to handling "null conditional" ops #251
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
f4351c6
First pass at an alternative approach to handling "null conditional" …
Nigel-Ecma f881f34
Update expressions.md
Nigel-Ecma 91fe31b
Update lexical-structure.md
Nigel-Ecma a98d5d7
Update statements.md
Nigel-Ecma 4ee7b60
Extend grammar of null_conditional_member_access and null_conditional…
Nigel-Ecma 64659e0
Missed one alternative of unconditional_access_part
Nigel-Ecma 247e2be
Merge branch 'dotnet:draft-v6' into alt-null-conditional-ops
Nigel-Ecma d264cee
Updated to now include:
Nigel-Ecma c238d13
fix adjacent key typo
Nigel-Ecma d147b8b
Missed out lexical-structure.md
Nigel-Ecma 08607f9
Update standard/expressions.md
Nigel-Ecma 854f9d6
Update standard/expressions.md
Nigel-Ecma 5ed92c2
- A number of small changes resolving issues raised in the comments.
Nigel-Ecma e4affe1
Fix some bad links
Nigel-Ecma 181462d
And yet more link fixes...
Nigel-Ecma 4d995f7
And I continue to whittle 'em down...
Nigel-Ecma 1918dae
Addressed some issues raised and made a few corrections/improvements …
Nigel-Ecma 78f7fba
Merge in changes to draft-v6 since all-null-conditional-ops branched off
Nigel-Ecma 10c969b
Rename captured_access to dependent_access
Nigel-Ecma 59226a8
Merge branch 'draft-v6' into alt-null-conditional-ops to bring in lat…
Nigel-Ecma 04a3841
Merge in changes from draft-v6 and keep grammar.md up-to-date
Nigel-Ecma e1133a3
Apply suggestions from code review
Nigel-Ecma 4457d3e
Fix editing snafu unearthed by Bill & Jon. Mea culpa.
Nigel-Ecma File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've just been trying to figure out how this works in a couple of cases, and while I think it's the right approach, we may need a bit more explanation.
For example consider:
My understanding is that that is a null_conditional_member_access with a dependent_access of
()
- so we get the null value. It's not a null_conditional_invocation_expression, because that's only used in places where the result (if any) is discarded. Is that the case? If so, it's a bit confusing becausex.GetHashCode()
is an invocation expresson, isn't it?I'm not suggesting that we change any of the existing text - just consider adding an example/note.