On 6/21/19 10:42 AM,
fge...@gmail.com wrote:
> (I forgot in my previous message: the email subject seems to imply
> that := or make() was changed since 1.0. No it wasn't.)
That was simply based on this, perhaps prior to 1.0?:
"
https://groups.google.com/forum/#!searchin/golang-nuts/make$20new$20zeroed|sort:date/golang-nuts/793ZF_yeqbk/norrWEAyVTcJ"
"we have both make and new mainly for
pragmatic reasons.
new(T) returns *T.
so it can't return chan int, which doesn't have the form *T.
so another operator is needed.
for a short time, we tried getting by with just make,
and make(*T) was like new(T) is today.
people found it too surprising coming from
c, c++, and java.
russ"
On reflection, I guess the subject line is inaccurate. When I find the time I
will suggest a patch for the tour. I Just wondered if it may be a cause of list
noise, but probably not.
I just created noise instead, ;)
Regards, KC