Re: [go-nuts] callee returns nil, caller does not see nil

2016-07-01 Thread Kevin Manley
Thanks, makes sense On Friday, July 1, 2016 at 8:06:45 PM UTC-4, Caleb Spare wrote: > > https://golang.org/doc/faq#nil_error > > Make Validate return error, not MultiError. > > -Caleb > > On Fri, Jul 1, 2016 at 5:04 PM, Kevin Manley > wrote: > > I am new to Go so I'm sure this is just me misu

Re: [go-nuts] callee returns nil, caller does not see nil

2016-07-01 Thread Caleb Spare
https://golang.org/doc/faq#nil_error Make Validate return error, not MultiError. -Caleb On Fri, Jul 1, 2016 at 5:04 PM, Kevin Manley wrote: > I am new to Go so I'm sure this is just me misunderstanding how things work, > but I was surprised at this result. Please can someone help me understand

[go-nuts] callee returns nil, caller does not see nil

2016-07-01 Thread Kevin Manley
I am new to Go so I'm sure this is just me misunderstanding how things work, but I was surprised at this result. Please can someone help me understand why the return value from Validate() is not seen as nil by the caller, despite Validate() returning nil? TIA, Kevin https://play.golang.org/p/U