Ancestors

Written by Björn Fahller on 2024-12-27 at 12:24

I've never used the alternative long-form bit-arithmetic names and_eq, or_eq and xor_eq in C++, and it just occurred to me that they are named wrong. They are alternative spellings for bit-arithmetic assignment operators &=, |= and ^=. Assignment, not equality.

I don't really think that this causes any problem, but it's curious, isn't it? Naming is hard.

=> More informations about this toot | More toots from rollbear@fosstodon.org

Written by Robert on 2024-12-27 at 12:49

@rollbear I'm sure the 'eq' in this case refers to the '=' sign part that the text replaces. Which is still wrong, because as every child (hopefully) learns in school, equality is written with two == (or is it not)?

The blessings of working with a historic language...

=> More informations about this toot | More toots from asperamanca@mastodon.social

Toot

Written by Björn Fahller on 2024-12-27 at 14:26

@asperamanca Oh, I'm absolutely sure that this is the case. I just thought it was interesting when I realized what it was I saw.

=> More informations about this toot | More toots from rollbear@fosstodon.org

Descendants

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113725248051135011
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
308.025753 milliseconds
Gemini-to-HTML Time
0.757563 milliseconds

This content has been proxied by September (3851b).