contribute.jquery.org icon indicating copy to clipboard operation
contribute.jquery.org copied to clipboard

Don't require spaces inside expression parentheses

Open gibson042 opened this issue 9 years ago • 2 comments

Excluding spaces from inside expression parentheses, especially in loop-statement assignments, has historically been common in jQuery—and used intentionally to visually distinguish expression parentheses from statement parentheses—but was prohibited by https://github.com/jscs-dev/node-jscs/commit/0f78baf08fba75aeba4575608aaa08c384875701 in response to #104 (which was removing our complicated function-call exceptions).

Since that time, JSCS has added an ignoreParenthesizedExpression option to requireSpacesInsideParentheses. We should adopt it and update the style guide accordingly.

gibson042 avatar Dec 30 '15 17:12 gibson042

:+1: for what it's worth from someone who rarely gets to write code anymore :smile:

kborchers avatar Dec 30 '15 17:12 kborchers

I'm strongly for this as well. cm87kwq

dmethvin avatar Dec 31 '15 20:12 dmethvin