DEV Community

Discussion on: How Lua Avoids Semicolons

Collapse
 
jochemstoel profile image
Jochem Stoel

JavaScript does not require semi colons either;

Collapse
 
17cupsofcoffee profile image
Joe Clay
Collapse
 
pmcgowan profile image
p-mcgowan • Edited

I've seen this rise in popularity lately, and frankly I just find it harder to read.

There are many statements which often span multiple lines (looking at you promises...) and it's just more clear to me when there is a dedicated stop to the line. Might be because I come from a C background, but I always make linters require semi-colons.

Collapse
 
lluismf profile image
Lluís Josep Martínez • Edited

Google JS style guide explicitly requires them:

google.github.io/styleguide/jsguid...

Collapse
 
jochemstoel profile image
Jochem Stoel

Well I explicitly disagree with Google.

Thread Thread
 
lluismf profile image
Lluís Josep Martínez

I explicitly disagree with JavaScript. Either you have semicolons or you don't.