Of course you cannot comment out the first line, that's true no matter where a comma exists. But you can comment out lines within the middle of a function call or sql script if the comma is on the left.bantu wrote:In general this is not the case since you can not comment out the first line. The JavaScript notation supports spare comma on the left as much as it supports spare comma on the right: Not at all.drathbun wrote:Comma on the left allows one to comment out a line of code without rewriting it.
Furthermore, current coding guidelines apply and should be followed. If you think comma on the left is a useful change, please post in the coding guidelines topic instead.
For example a SQL statement all on one line (not standard, just for example)
Code: Select all
select a, b, c, d from table1, table2, table3 where join1 and join2 and join3
Code: Select all
select a,
b,
c,
d
from table1,
table2,
table3
where join1
and join2
and join3
Code: Select all
select a,
b,
c,
d
from table1,
table2,
table3
where join1 and
join2 and
join3
Code: Select all
select a
, b
, c
, d
from table1
,table2
,table3
where join1
and join2
and join3
I realize this is a religious war much like whether { } should be on their own line or not. But I feel that there are specific benefits to having a comma / connector left strategy that apparently were not apparent to the person who responded to my post in the other topic quoted above.