2

In my coding style I generally tend to have the commas for comma separators before the next value, example:

var x
   ,y
   ,z

I find this is easier to assimilate as the pattern when broken is obvious to the human eye.

Question - is this likely to fall foul of automatic semicolon insertion (ASI) - I read this linked question and it was not obvious after a couple of readings so I decided to ask.

[EDIT] I voted to re-open this question. My point is that whilst the answer can eventually be pulled from the linked question, it is not at all obvious. I linked to the same question as was proposed as duplicate as I had found it to be the best discussion of the overall ASI concept. Summary - I don't think the answer to my question is clear in the linked question therefore, this question should stand.

Community
  • 1
  • 1
Vanquished Wombat
  • 6,839
  • 4
  • 22
  • 52

0 Answers0