News for hackers. Stuff that matters.
Re:C++26: A Placeholder with No Name by nicoburns on Saturday January 11, 2025 @06:30AM (#42665164)
I think this predates computers entirely.
Re:C++26: A Placeholder with No Name by SideburnsOfDoom on Saturday January 11, 2025 @06:49AM (#42665252)
I think so, yes. English novels written in the 1800s would reference "Mr A------ from ------shire". As if they were redacting personally identifying information. (1)

Underscores and dashes are not that different - especially as this is not just pre-computer but pre-typewriter.

And now, underscores are a logical choice when the dash is already in use as a minus sign.

1) https://literature.stackexchange.com/questions/1944/why-are-...

https://forums.welltrainedmind.com/topic/141704-jane-austens...

Re:C++26: A Placeholder with No Name by adrian_b on Saturday January 11, 2025 @10:22AM (#42666440)
Underscore has been used in programming for the first time by the language IBM PL/I, in 1964-12, where it replaced the hyphen/minus character that was used by COBOL to make more readable the long identifiers.

Replacing hyphen/minus with underscore has been done precisely for removing the ambiguity with the minus operator (In COBOL the ambiguity was less annoying, because the arithmetic operations were usually written with words, e.g. ADD, SUBTRACT, MULTIPLY and so on).

Re:C++26: A Placeholder with No Name by agumonkey on Saturday January 11, 2025 @06:53AM (#42665264)
Good point, this is clearly something that could go back centuries.. if not all the way back to clay tablets.