Elements may be added during execution using assignments and retrieved with index expressions;
On 21/11/2013 8:53 PM, "Nico" <nicolas...@gmail.com> wrote:
>
> I think Dave's comment is not restricted to maps. It's a general feature of Go assignments:
>
> http://play.golang.org/p/ug5_LjjjPM
>
It's also a general feature of assignment in almost every programming language in common use.
On 21/11/2013 9:58 PM, "Nico" <nicolas...@gmail.com> wrote:
>
> Isn't Java:
>
This is what I mean by 'mentally auto dereferencing variables'.
You're confusing the reference to the value with the value it refers to.
Check the internet for 'is java pass by value or pass by reference?' for the endless discussions of other programmer's with the same confusion.