Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What confuses me is languages that can split statements over multiple lines as long as certain conditions are met (such as the break occours inside braces). I rather have a semicolon at the end of the statement to make it more explicit.


This is where I stand. Semicolons convey intent, much like parens in math equations. Sure, the code makes it clear (if you understand the rules) what "the code does", but having semicolons (and parens) make it clear that "what the code does" and "what the writer intended the code to do" are the same thing.

Plus I don't think I've ever seen a case where semicolons made the code harder to read (or write).


But why a semicolon? Sentences have been terminated by periods for hundreds of years until programmers decided to be special snowflakes.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: