When I worked on these features, I worked head-on on the coloring improvement.
Now that it’s done, I can take a step back and think a bit. So far, I’ve been
exploring the rendering of only
is_equal_to (and its friend
is_not_equal_to). But the plan always was to expand to more assertions.
What good is going to be a diff output for something like
Yeah, you’re right, it doesn’t make any sense.
How about if we start using regular expression and have a
Or asserting on a map with
And I’m sure I could find thousands of these little examples where a diff would
not make any sense. It feel like a diff is only useful when comparing for
equality which is exactly what
PartialEq is about.
Let’s pin these and we’ll try to address them on a later post. One thing that
seems to emerge is that the reporting is tightly coupled with the assertion.
In term of code architecture, it probably means that the current version, that
you can find on
is not well-suited for what’s coming.