Re:Golang: Know Your 'Nil'
by morelisp on Wednesday March 31, 2021 @01:13PM
(#26649989)
`new` is basically syntactic sugar (and I personally rarely use it), but `make` is the only way to dynamically allocate or to pre-allocate slices and maps.
[ Parent
| on HN ]
There are no comments on this comment yet.