Re:The Birth of the Semicolon
by goatlover on Friday August 02, 2019 @03:13PM
(#20595731)
Or as an unnecessary end of statement character to clutter up your code with.
[ Parent
| on HN ]
Re:The Birth of the Semicolon
by outworlder on Friday August 02, 2019 @03:48PM
(#20596017)
> Or as an unnecessary end of statement character to clutter up your code with.
To the benefit of compiler writers, in detriment of everyone else.
Re:The Birth of the Semicolon
by reificator on Friday August 02, 2019 @04:01PM
(#20596110)
I've come in to fix bugs caused by ASI many a time. Having an explicit character to denote the end of a statement is much more valuable than people pretend.
And don't get me started on meaningful whitespace vs brackets.
Re:The Birth of the Semicolon
by outworlder on Friday August 02, 2019 @08:55PM
(#20597914)
> Having an explicit character to denote the end of a statement is much more valuable than people pretend.
No, I'm not talking about automatic semicolon insertion. I'm talking about _ not having semicolons at all _.
Many languages are like that – in fact, almost all languages which are not descendants of the C branch.
Re:The Birth of the Semicolon
by reificator on Saturday August 03, 2019 @01:54AM
(#20598905)
I think you quoted the wrong part of the message there, but I understand.
Still, without a line terminator you either have to use newlines, which sometimes will help make cleaner code and sometimes will make a mess of temporary variables and such. Or you have ambiguity, which is why I bring up the the anecdotes about fixing ASI errors.