Yes and once that was clear it quickly became familiar but to people from
other languages (a mix between Java and C perhaps) it can be confusing.

At first it bummed me out that these where special but it is easy to get
used to it.

fre 21 okt. 2016 kl 16:01 skrev Ian Lance Taylor <i...@golang.org>:

> On Fri, Oct 21, 2016 at 6:52 AM, Henrik Johansson <dahankz...@gmail.com>
> wrote:
> > The confusion I have had is rather with nilability.
> > A channel can be nil even though it is not explicitly a pointer.
>
> It's a basic design decision in Go that every type has a zero value.
> For the "reference types" (pointer, channel, map, slice, interface)
> that zero value is named "nil".
>
> Ian
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to