./prog.go:5:8: assignment mismatch: 2 variables but 1 value
./prog.go:5:13: undefined: invalid
While the second error is completely reasonable, and probably what I would expect to see first and foremost, the first error is rather confusing. When fixing compile errors with a lot more messages, and getting a bit tunnel-visioned on fixing them one after the other, I was left wondering what was wrong with my program and attempting to change some variable names in hope of fixing it, only to realize a couple of minutes later that the undefined key was the actual issue.
This is of course pretty minor, but I wish the compiler hadn't shown me the first error since it threw me for a loop.
The text was updated successfully, but these errors were encountered: