Is there any reason to generate diff text using
c.saveDiff(a.Int(), b.Int())
instead of
At a glance second way is better because it keeps original type and thus if that type implements Stringer interface then diff will contains values in much more readable form than just a number. (With a lot of iota consts reading diff with numbers is really hard.) Of course, same probably apply to other types, not just to integer ones.
Is there any reason to generate diff text using
instead of
At a glance second way is better because it keeps original type and thus if that type implements Stringer interface then diff will contains values in much more readable form than just a number. (With a lot of
iotaconsts reading diff with numbers is really hard.) Of course, same probably apply to other types, not just to integer ones.