I am new to Golang. What is/are the difference(s) between the following 
declarations?

[]T(nil) 

and 

[]T {}

Both seem to work identically for me. Also, I was not aware of the first 
syntax ([]T(nil). Can someone point me to the Go document where this is 
introduced? 

-- 
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.

Reply via email to