RetroFed Forum
Your home away from modern life.
The operator ^ for exponentiation or for excluding: how not to confuse them?
Post Reply
AuthorMessage
CodyIT programming.dev CodiUnicorn@programming.dev
Joined: 2024-09-30
Quote

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?

4   Original
Post Reply
Back to top