-
Notifications
You must be signed in to change notification settings - Fork 19
Null Propagation #78
Comments
As spec'd (with the caveat that it wouldn't match the grammar at all unless something was changed), (Also, that would later allow us to redefine |
@bakkot makes a reasonable argument that this feature is relatively complicated and confusing, and it's harder to see the use case than ordinary null propagation. However, syntactically, this works out just fine: |
Btw, what was the rational regarding the use of the |
The current proposal remains Sorry, I (personally) wasn't thinking about non-US keyboards with this proposal; in American keyboards, # doesn't require pressing Alt Gr. However, given that, on a French keyboard, Leaving keyboard layouts aside, For now, I'd like to stick with |
Null Propagation was promoted to stage 1 on January meeting. How should this work with private fields? AFAIU private properties are statically resoled so I suppose that something like
a?.#b
should be an early Syntax Error?cc @gisenberg
The text was updated successfully, but these errors were encountered: