-
Notifications
You must be signed in to change notification settings - Fork 75
Optional call grammar #12
Comments
That's explicitly allowed.
a?.() // a is invoked if not null/undefined |
The example allows it, but the grammar in the proposal doesn't allow it. |
@waldemarhorwat It’s a bug. The following rule is missing:
|
This is off-topic on the question at hand, but relates to the title of the thread – where can one read about the decision to go with It was implied elsewhere that this debate had been had; it might be helpful to the community to have the explanation somewhere (perhaps I simply haven't found it). |
|
@rattrayalex that's because there was no real debate and both issues were closed too abruptly. |
@waldemarhorwat The bug is fixed with the latest update. Thanks for the careful reading. |
The grammar allows
a(b)?.(c)
but prohibits
a?.(b)
Is that intentional?
The text was updated successfully, but these errors were encountered: