function redundant?
Closed this issue · 2 comments
DanielHerr commented
Is it really necessary to have "async function" instead of simply "async"?
ljharb commented
I think async() { }
is valid syntax (it's a function invocation followed by a block), because async
is a valid variable name.
bterlson commented
Yes, function is necessary. async() { }
is not valid syntax, but async()\n{ }
is (eg. Allman/GNU styles).