MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/52fm78/javascript_standard_style_guide/d7kur0t/?context=3
r/javascript • u/kasperpeulen • Sep 12 '16
29 comments sorted by
View all comments
16
Space after function name
function name (arg) { // ... }
When and how did that become a thing?
4 u/azium Sep 12 '16 Not sure how to answer this question, but I've been doing this myself for quite some time. It helps me quickly scan what is a function definition vs a function call.But then again nowadays I never use the function keyword, so shrug 1 u/Klathmon Sep 13 '16 That's the reasoning. The space vs no-space helps determine definition vs invocation.
4
Not sure how to answer this question, but I've been doing this myself for quite some time. It helps me quickly scan what is a function definition vs a function call.
But then again nowadays I never use the function keyword, so shrug
function
1 u/Klathmon Sep 13 '16 That's the reasoning. The space vs no-space helps determine definition vs invocation.
1
That's the reasoning. The space vs no-space helps determine definition vs invocation.
16
u/MoTTs_ Sep 12 '16
When and how did that become a thing?