-
I came across JavaScript guidelines which states:
However as far as
Is Also ... 8 - White Space
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 12 replies
-
I personally much prefer @wbamberg Any opinion on this? Do we ever automate prettify to fix this stuff? |
Beta Was this translation helpful? Give feedback.
-
Just a note to say that the topic is not limited to ref: JavaScript Reserved Words For example: if (...)
do...while (...)
for (...)
for each...in (...)
for...in (...)
for...of (...)
for await...of (...)
while (...)
switch (...)
catch (...) Functions/methods followed by parenthesis should not have any space before parenthesis. |
Beta Was this translation helpful? Give feedback.
-
Another reference to consider:
It might be prudent to update JavaScript guidelines. |
Beta Was this translation helpful? Give feedback.
-
There's a couple threads here that have called out for my attention so I'll lay out my position here (cc: @hamishwillee and @wbamberg, specifically):
If y'all are onboard with this approach, there's a few natural issues that I could open to track the work, based on the text above. |
Beta Was this translation helpful? Give feedback.
-
The more coherent we are, the better. I have no strong feelings about the conventions. So I think we should do it. |
Beta Was this translation helpful? Give feedback.
There's a couple threads here that have called out for my attention so I'll lay out my position here (cc: @hamishwillee and @wbamberg, specifically):