It's probably just me not thinking things through in the early days of building the Go libraries. There's a lot of that. Hindsight is easy; foresight not so much.
-rob On Wed, Jul 5, 2017 at 11:46 PM, Yann Salaün <yannsala...@gmail.com> wrote: > Hello, > > I was surprised to realize today that the default format for a nil slice > or map is the same as the default format for an empty one. However, this is > not the case for a nil chan or func. > > See this playground link for an example: https://play.golang. > org/p/OtoFRxjD61 > > I would be very interested to understand why it was decided that the > default format for the nil slice and map would not be nil. > > Thank you, > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.