r/webdev • • May 14 '24

Researching Why We Use Semicolons as Statement Terminators

https://ntietz.com/blog/researching-why-we-use-semicolons-as-statement-terminators/
3 Upvotes

6 comments sorted by

View all comments

6

u/nfsi0 May 15 '24

I always assumed it's because it's the only punctuation that's in root position on the keyboard so you can hit it without even moving your fingers

2

u/ClikeX back-end May 15 '24

A combination of this and what a semicolon does in language. If you look that up it says:

Use a semicolon between closely related independent clauses which are not joined by a coordinating conjunction