-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
Space before left parenthesis in anonymous function literals #55
Comments
Since |
I think the no space style Happy to leave this open and get more feedback. |
I sympathize with @ssorallen and @hshoff views. In my opinion it's much easier to read and identify an anonymous functions without a space between the |
Happy to reopen this if folks want to continue the discussion. |
I vote for the Crockford style. Also I find it easier to identify an anonymous function by using the space, which clearly shows that the function has no name. |
I feel like The space in the middle of |
@matbhz I don't think it's a whole thing. The full expression syntax is The function name and |
+1 to that @leizhao4 |
+1 as well, |
I agree, and always follow. Sent from my iPhone
|
@leizhao4 you are a FUCKING GENIUS!!! https://youtu.be/tuhPPOXnyKo |
This is addressed here. |
should the ES5 examples be updated then ? (they currently use |
From Crockford:
Source: Code Conventions for the JavaScript Programming Language
The text was updated successfully, but these errors were encountered: