https://blog.golang.org/constants
This explains why you can do stuff like that and why the Go team decided to
make the language work this way.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emai
Hello golang-nuts,
Here are two code snippets with operations on different types. One with
constants and another one with variables. The first one works, the second
one doesn't. Why is it like this? Logically both code snippets shouldn't
work:
https://play.golang.org/p/eqNJootZ3a
package main