thecoderartist / go-tour

Automatically exported from code.google.com/p/go-tour
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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