Re:Actual drawbacks to omitting semi-colons?
by silentOpen on Wednesday October 06, 2010 @03:10AM
(#1763045)
The dot is the operator.
It is customary to stack operators by indenting.
Why are lines without semi-colons at the end bad?
MyObj.item.childItem.getAll()[0].properties... // etc.
It's common to want to split this over several lines. I am in favour of placing the the period at the end of the line to indicate that the expression continues. Other people prefer the dot to start the next line instead. I don't like the latter since the first line then looks like a mistakenly omitted semi-colon.