ZinedinShiqin/go-tour

I'm confused about make vs new. Why can't a map be created using new? Can a slice be created us...

Opened this issue · 0 comments

https://feedback.corp.google.com/#/Report/1078652021

Description:
I'm confused about make vs new.

Why can't a map be created using new?

Can a slice be created using new?

If I create a map or a slice using make, are they passed by value (copied)?

UI language: en
Detected language: en

Original issue reported on code.google.com by feedback...@gmail.com on 2 Aug 2013 at 8:45