The operator ^ for exponentiation or for excluding: how not to confuse them?

https://pvs-studio.com/en/blog/posts/go/1350/

Gophers, hey. Confusing ^ with exponentiation instead of XOR in Go seems like a pretty easy mistake to make. The bug itself is simple, but it still shows up even in some well-known projects with large codebases.

How often does this happen in your code?

5 points · 1 comments · view on lemmy.world

1 Comments

I_quote_Seinfeld_a_lot@sh.itjust.works · 2 pts · 202d

Is this just a desperate AI ad with a cheap call to action to increase engagement?

Multiplexer@discuss.tchncs.de · 1 pts · 203d
[ removed ]