-
Notifications
You must be signed in to change notification settings - Fork 227
Closed
Labels
nnbdNNBD related issuesNNBD related issues
Description
If we simply make ! a postfix operator using the existing grammar, I believe we get the behavior that await e! is parsed as await (e!). Since await is accepting of null, it seems like it would be more useful to make it bind more tightly than !, and hence treat await e! as (await e)!. I'm not sure whether this matches the users intuition or not though. Would it be surprising to the user if await x++ were parsed as await (x++) but await x! were parsed as (await x)!?
Thoughts?
Issue raised by proposed tests here.
cc @lrhn @munificent @eernstg @stereotype441 @danrubel @bwilkerson @scheglov
Metadata
Metadata
Assignees
Labels
nnbdNNBD related issuesNNBD related issues