--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/39e212d7-a5d1-438f-8116-8e929b835da4n%40googlegroups.com.
How do you handle whether a symbol identifier is public or private?
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/EE71219E-FF34-42BB-BAFF-1D516EDC7DF8%40ix.netcom.com.
How do you handle whether a symbol identifier is public or private?
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/7f185c31-b69e-460f-92c8-65cfab845d39%40gmail.com.
It is an interesting proposal.
It would allow us to write stuff like
func foo() {
a := 1
b := 1
a+b := 3 // defining a new viable called a+b - this is OK because mathematical symbols can now be included in identifiers
fmt.Printf("%d+%d = %d\n", a, b, a+b)
// Output: 1+1 = 3
}
To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/83a74d2a-bb94-4e2a-8a13-e5d135f4031cn%40googlegroups.com.