|
Andrew Gerrand |
at Jan 23, 2013 at 1:11 am
|
⇧ |
| |
On 23 January 2013 09:48, wrote:
I don't want to introduce special cases. The behavior of
type T struct {
X int
Y int
Z int
w int
}
should not change if you remove X, Y, or Z individually, and it does
not. If you remove all three, it should not change either.
I understand the desire not to introduce special cases.
However, calling unmarshal on a data structure that can never receive any
of the data seems like it is always a mistake to me. And it's a mistake
that pretty much only newbies will make.
I'm not averse to improving this with better docs though.