a := b ⇒ "a gophers b"
--
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.
For more options, visit https://groups.google.com/d/optout.
--
--
I am wondering how to use := in a sentence, when speaking with another go programmer?
--
When teaching a Go class, I'm explicit: "this statement declares a and initializes it to the value of b".
--
--
You received this message because you are subscribed to a topic in the Google Groups "golang-nuts" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-nuts/qyrOifs48i4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-nuts...@googlegroups.com.
I suppose "a spawns as b" would be more fun.
Although I don't use it, I like "gopher operator" (tilt head).
--
I mostly teach internally at Google, but even that teaching has been largely supplanted by self serve resources like the Go tour. We might be able to provide a video of our "Guided tour of Go" for external users.
Back in '87 when I was a uni student learning Modula 2 / C our lecturer said to use "equals" for "==" and "is assigned the value" for ":=" and "=" which is a much larger mouthful but pretty quick when thinking / reading code. Consequently, when I read Go code I read that as "is assigned the value of", which is not quite accurate for what it does.Maybe something a bit shorter is appropriate e.g. "allosign" for allocate and assign. This way you are reminded that you are creating a new variable store and assigning to it with one action.
--
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.
For more options, visit https://groups.google.com/d/optout.
repeating myself, but "clone" says it all.
Hello,I am new to go, and while reading through the following doc.
I am wondering how to use := in a sentence, when speaking with another go programmer?