Descriptionfmt: make the %#v verb a special flag
The %#v verb is special: it says all values below need to print as %#v.
However, for some situations the # flag has other meanings and this
causes some issues, particularly in how Formatters work. Since %#v
dominates all formatting, translate it into actual state of the formatter
and decouple it from the # flag itself within the calculations (although
it must be restored when methods are doing the work.)
The result is cleaner code and correct handling of # for Formatters.
TODO: Apply the same thinking to the + flag in a followup CL.
Also, the wasString return value in handleMethods is always false,
so eliminate it.
Update issue 8835
Patch Set 1 #Patch Set 2 : diff -r 25a1150f9f3d1f0539e827cb50c15014f0915e08 https://code.google.com/p/go #
Total comments: 10
Patch Set 3 : diff -r 52bacae4f5b0f55fb07cc2634d151d399a44c314 https://code.google.com/p/go #
Total comments: 1
MessagesTotal messages: 6
|