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

It's only redundant in languages that make it redundant, like you mentioned C at the end - it's the new line that's redundant there (or only for readability), it's the semicolon with the 'end' semantics.


> It's only redundant in languages that make it redundant

Yeah, I did say "several" not "all".

There is very little benefit in new languages making terminator tokens necessary when followed by LF. We are long past the point of needing to optimise language syntax for parser efficiency.


In this specific case it's not redundant in C - without the commas, the strings would be merged together.


Exactly, that's what I said? 'In this specific case' though? It would be news to me (not that I've used it since university!) that they're ever non-semantic?




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

Search: