On 2013-10-22, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 22 Oct 2013 14:04:57 +0000, Dave Angel wrote: >> but here you go on to say the C code is unsafely skipping >> initialization, which is not the case. > > Are you talking generically, or specifically about the C code > referenced in the link I gave? > > "Memory is always zeroed" is one of the advantages of Go over C and C++, > at least according to Rob Pike: > > http://commandcenter.blogspot.com.au/2012/06/less-is-exponentially- > more.html
Go initializes variables to defined zero values, not simply to all-bits zero as (I think) C does. This isn't as great a feature as it seems, since the zero value for some built in types, e.g., map, is unusable without manual construction. In addition, you can't define a zero value for your own types. -- Neil Cerutti -- https://mail.python.org/mailman/listinfo/python-list