91
C++ should be called ++C (sh.itjust.works)
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]

According to syntax postfix increment returns copy of unmodified variable (C++ == C), while prefix increment returns incremented variable (++C == C + 1).

you are viewing a single comment's thread
view the rest of the comments
[-] [email protected] 31 points 1 week ago

Cpp

++C would make the language totally irrelevant in alphanumeric listings of languages

After simply managing a point of sale system for a retail chain, I hate you for even suggesting this./s It is almost as bad as all the insane ideas about date notation. The only correct notation is YYYY/MM/DD.

[-] [email protected] 23 points 1 week ago
[-] [email protected] 7 points 1 week ago* (last edited 1 week ago)

Why not invent even more notations? We did YYYY.MM.DD at work.

[-] [email protected] 4 points 1 week ago

Just please don't do yyyyMMdd with each field being optional and possibly one or two characters.

load more comments (1 replies)
load more comments (3 replies)
load more comments (12 replies)
this post was submitted on 20 Sep 2024
91 points (90.3% liked)

Showerthoughts

29283 readers
1564 users here now

A "Showerthought" is a simple term used to describe the thoughts that pop into your head while you're doing everyday things like taking a shower, driving, or just daydreaming. The best ones are thoughts that many people can relate to and they find something funny or interesting in regular stuff.

Rules

founded 1 year ago
MODERATORS