Get the latest tech news

The origin and virtues of semicolons in programming languages


Monday, April 15, 2024 While working on the grammar for my programming language, Lilac, I was exploring different choices for statement terminators. .

Some early input devices were adapted from Remington keyboards, and those (based on the pictures I can find) did include a semicolon and colon. Being on the home row makes it super easy to type, so in contrast to something like!, which requires two keystrokes and a stretch, you can get a; with just your right pinky. One of the jobs of the semicolon in English is to delimit independent clauses; these are parts of a sentence which could stand alone but are closely related.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Origin

Origin

Photo of virtues

virtues

Photo of semicolons

semicolons

Related news:

News photo

SXSW Audiences Loudly Boo Festival Videos Touting the Virtues of AI

News photo

SXSW Audiences Loudly Boo Festival Videos Touting the Virtues of AI

News photo

Asteroid Pieces Brought to Earth May Offer a Clue to Life's Origin