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
@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
@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
text/gemini
This content has been proxied by September (3851b).