Hacker News new | ask | show | jobs
by olavgg 4569 days ago
Any language today that still requires to mark end of line with a semi colon, has in my opinion outdated syntax. Most people put one statement per line, so why is it required and not optional?
2 comments

just guessing but if all statements are terminated with a ; instead of a newline it allows statements to be split up into multiple lines?
What about the counter case of one statement needing more than one line?
1) Line length is arbitrary, and there is no finite limit 2) You can have an escape sequence for a new line

With that said, I disagree that having to mark the end of a statement with a semi-colon is obsolete syntax. Statements and lines should not have to be 1-to-1, even if most code is written as such.