I wonder whether it should default the other way (i.e. consider two non-nil funcs equal). ...
13 years, 3 months ago
(2012-02-24 05:24:25 UTC)
#2
I wonder whether it should default the other way (i.e. consider two
non-nil funcs equal). Otherwise DeepEqual is a bit useless if you have
just a single func field in your type structure.
Dave.
On Feb 24, 2012, at 4:24 PM, Russ Cox wrote: > LGTM as is. > ...
13 years, 3 months ago
(2012-02-24 05:26:04 UTC)
#5
On Feb 24, 2012, at 4:24 PM, Russ Cox wrote:
> LGTM as is.
>
> I would rather have false negatives than false positives.
agreed. this way we catch uses of DeepEqual that can't work.
Issue 5693057: code review 5693057: reflect.DeepEqual: don't panic comparing functions
(Closed)
Created 13 years, 3 months ago by r
Modified 13 years, 3 months ago
Reviewers: r2
Base URL:
Comments: 0