Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upCatch 22 #749
Comments
This comment has been minimized.
This comment has been minimized.
|
This works: true ? 'hello' : (function () { return 'hi' }.call()) |
feross
closed this
Jan 18, 2017
dcousens
added
the
question
label
Jan 18, 2017
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
jescalan commentedJan 17, 2017
If you run the following code:
Standard will warn you that you have "Gratuitous parentheses around expression". However, if you remove the parens, it will warn you to "Wrap an immediate function invocation in parentheses".
Is there any way out of this?