Re: [lang] Proposal: Allow extending DiffResult

2016-03-03 Thread rgm
No, because ToStringStyle affects the rendering of only one of the object's toString methods and cannot change the "left differs from right" output, although it could change the rendering of either "left" or "right." The inclusion of two objects and the hard-coded string "differs from" are not aff

Re: [lang] Proposal: Allow extending DiffResult

2016-03-03 Thread Bhowmik, Bindul
On Thu, Mar 3, 2016 at 9:31 AM, rgm wrote: > Ironically, it seems impossible to override DiffResult.toString(), which > one may wish to do in order to provide alternate formats for the > differences that are more compact than "lhs differs from rhs." > > In my case, I wanted to support differences

[lang] Proposal: Allow extending DiffResult

2016-03-03 Thread rgm
Ironically, it seems impossible to override DiffResult.toString(), which one may wish to do in order to provide alternate formats for the differences that are more compact than "lhs differs from rhs." In my case, I wanted to support differences between Set so that one could get output like: Object