5

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?

all 2 comments
sorted by: hot top new old

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

this post was submitted on 06 Mar 2026
5 points (77.8% liked)

Golang

2659 readers
1 users here now

This is a community dedicated to the go programming language.

Useful Links:

Rules:

founded 2 years ago
MODERATORS