Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1194)

Issue 5693057: code review 5693057: reflect.DeepEqual: don't panic comparing functions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by r
Modified:
13 years, 3 months ago
Reviewers:
r2
CC:
golang-dev, dsymonds, rsc
Visibility:
Public.

Description

reflect.DeepEqual: don't panic comparing functions Functions are equal iff they are both nil. Fixes issue 3122.

Patch Set 1 #

Patch Set 2 : diff -r 93459bf91251 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -2 lines) Patch
M src/pkg/reflect/all_test.go View 1 3 chunks +10 lines, -0 lines 0 comments Download
M src/pkg/reflect/deepequal.go View 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 5
r
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 3 months ago (2012-02-24 05:21:48 UTC) #1
dsymonds
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
rsc
LGTM as is. I would rather have false negatives than false positives.
13 years, 3 months ago (2012-02-24 05:24:53 UTC) #3
r
*** Submitted as http://code.google.com/p/go/source/detail?r=9c97f1591f2c *** reflect.DeepEqual: don't panic comparing functions Functions are equal iff they ...
13 years, 3 months ago (2012-02-24 05:25:43 UTC) #4
r2
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.

Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b