From eebb9db0ef1a4cad2f5dd7e8b90f699a1d50bf91 Mon Sep 17 00:00:00 2001
From: Robert Griesemer
var pointer *Point3D = &Point3D{y: 1000}
++Note that the zero value for a slice or map +type is not the same as an initialized but empty value of the same type. +Consequently, taking the address of an empty slice or map composite literal +does not have the same effect as allocating a new slice or map value with +new. +
+ +
+p1 := &[]int{} // p1 points to an initialized, empty slice with value []int{} and length 0
+p2 := new([]int) // p2 points to an uninitialized slice with value nil and length 0
+
+
The length of an array literal is the length specified in the literal type. If fewer elements than the length are provided in the literal, the missing -- 2.52.0