-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: more obvious syntax for macros #2384
Comments
Perhaps we could find all non-symbolic uses of Then, perhaps we could come up with a symbolic form of |
And |
Shorthands that are invoked like abstract ops:
However, I think NormalCompletion and ThrowCompletion could be defined as regular abstract ops. |
Both already are, no? If not, they should be. |
Well, they say they're abstract operations, but they're defined as shorthands, so they're weird. |
... as regular abstract operations. See - tc39#1142 (comment) and following - tc39#2384 (comment) and following
... as regular abstract operations. See - tc39#1142 (comment) and following - tc39#2384 (comment) and following
... as regular abstract operations. See - tc39#1142 (comment) and following - tc39#2384 (comment) and following
... as regular abstract operations. See - tc39#1142 (comment) and following - tc39#2384 (comment) and following
We could probably prefix their names with a
This would also solve #2498. |
Closing as duplicate of #2498. |
Macros like ReturnIfAbrupt and IfAbruptRejectPromise are called like AOs, but they can have effects on the control flow and aliases in caller, which is confusing.
We should make it more obvious at the callsites that these are not normal AOs.
(I don't think this extends to the
?
and!
macros, since uses of those symbols do not look like a normal AO invocation.)The text was updated successfully, but these errors were encountered: