Comments (1)
Yep, the stringification is the whole basis for the library.
Pretty.Compare compares the pretty-printed values. It doesn't even enforce
that the two values are of the same types. As for the other point, it
can't prevent the objects from changing out from under it, you need to do
that as the caller.
On Wed, Aug 3, 2016, 5:41 AM Vincent Bernat [email protected]
wrote:
Hey!
When comparing two pointers, it seems that pretty.Compare() doesn't
satisfy itself by the pointer values being the same. It tries to compare
the content of those two pointers. Usually, this works, but sometimes, one
pointer can change during iteration. I understand this may be difficult to
fix as currently, both values are turned into strings, then compared as
strings.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#7, or mute the thread
https://github.com/notifications/unsubscribe-auth/AATqpV3cEZrjWMZmQ9Kxwlk2NxA3cIHHks5qcIfhgaJpZM4Jbmn1
.
from godebug.
Related Issues (15)
- DiffChunks() with empty slices fails HOT 1
- Incompatibility with time.Time
- panic: reflect: call of reflect.Value.CanInterface on zero Value HOT 2
- Error calling String value method on nil HOT 1
- Compare() function uses a lot of RAM HOT 1
- Inifinite recursion issues. HOT 5
- Configuration for pretty.Compare HOT 2
- pretty.Compare can result in unexpected type coercion HOT 3
- diff.Diff() with an empty value produces one blank line HOT 2
- Add support for fmt.GoStringer interface HOT 1
- Compare(map, uninitialised map) returns no output HOT 5
- diff.Diff optimization if one input is empty. HOT 1
- Special treatment for net.IP? HOT 2
- pretty doesn't respect method String() string HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godebug.