News for hackers. Stuff that matters.
Re:The Birth of the Semicolon by king-rat on Friday August 02, 2019 @03:10PM (#20595705)
Interesting that the semicolon was born out of a need for a longer pause in spoken language, rather than as a means to connect two independent clauses as is taught today
Re:The Birth of the Semicolon by bitwize on Friday August 02, 2019 @03:34PM (#20595901)
Virtually all punctuation marks started as prosody hints, indicating intonation and pauses, suggesting how the text is to be read aloud. In fact you can argue that this is still the case: it was only later that we invented grammatical structure rules for them, and even those are applied only in certain contexts like professional writing. In casual writing, we tend fall back to using punctuation as prosody markers, for example: "Worst. Episode. Ever."
Re:The Birth of the Semicolon by jessriedel on Friday August 02, 2019 @04:40PM (#20596452)
Yes, reading a transcript without punctuation can give one a visceral sense of what drove its introduction.
Re:The Birth of the Semicolon by lighthazard on Friday August 02, 2019 @03:54PM (#20596053)
If there are two independent clauses, why not keep it 2 sentences? I personally use it to connect two separate thoughts that have a related subject.
Re:The Birth of the Semicolon by NobodyNada on Friday August 02, 2019 @04:52PM (#20596552)
"Independent clause" doesn't mean "unrelated thought," it's grammar terminology for a phrase that makes sense as a simple sentence: https://en.wikipedia.org/wiki/Independent_clause
Re:The Birth of the Semicolon by gdcohen on Friday August 02, 2019 @03:59PM (#20596101)
Also that the article talked about the colon as having a longer pause than a semicolon (different to how it is used today).
Re:The Birth of the Semicolon by markdown on Friday August 02, 2019 @06:52PM (#20597327)
Did they not have the ellipsis back then?
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.
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.

Re:The Birth of the Semicolon by goatlover on Friday August 02, 2019 @04:44PM (#20596482)
Which makes it interesting that the Go creators, being heavily into C before, decided to ditch the end of statement semicolon.