I was learning about Go and was wondering if there is a name for the :=
operator. As in x := 4
.
The best I can come up with is the "spider face".
Example
(source: buzzfed.com)
Update
The reason I ask is because I'm wondering how you would read the code out loud as in during a pair programming session. It's been brought up that the official name of the operator is the "short variable declaration operator" but this is ironically too long of a name to be used frequently.
How would you read this x := 4
? So far I have "ex colon equals four" or "ex spider-face four"? Are there any better ideas?
This is just off the top of my head, but I'd call it "instantiate". IMHO, assign is not a good choice as it confuses it with the Pascal assignment operator. Assign is also the verb used for the "=" in go and most other computer languages.
"decinit" might work as a short-hand and that has no other meaning that I know of.