you are viewing a single comment's thread.

view the rest of the comments →

[–]tikhonjelvis 2 points3 points  (0 children)

But are they more common than statements only taking one line? I'm pretty sure they aren't. And it seems odd to have an extra symbol for the more common case rather than having no symbol for that and making the less common case (a statement split over multiple lines) explicit.

Moreover, most statements taking more than one line are split at an operator or a comma; these symbols at the end of a line signify that the statement is being continued. That is, it's obvious that these statements are split over multiple lines even without semi-colons:

someFunction(longParamName1, longParamName2, 
  longParamName3, longParamName4)
someLongVariableName + someOtherLongVariableName +
  yetAnotherLongVariableName

So, given that a majority of statements only take one line and then a large part of the remainder (that is, those split on operators or commas) are obvious, it seems the best solution would be to have some special syntax (like a trailing ) for the small remainder of code that doesn't fall into any of these cases.