|
|
|
|
|
by peti
5834 days ago
|
|
If you write one statement per line, the code is very clear, and there is no need for semicolons. It is after all possible, according to the syntax, and a minifier should be able to understand it, as well as your browser. I am certainly not against coding practices or readability. With (Q)BASIC, you could also add semicolons and have multiple statements per line, but who did ? It seems that it is the same with Javascript, semicolons are separators between statements, as well as newlines : why write both ? just to be sure they are well separated ? |
|
Why force yourself to remember edge cases, when you can just remove that whole class of bugs by being explicit about what you mean...