Ticket #3058 (closed proposal: wontfix)
Add a 'hex' function to the pretty printing
|Reported by:||TomMD||Owned by:|
|Keywords:||pretty, prettyprint, library||Cc:|
|Type of failure:||None/Unknown||Difficulty:||Unknown|
|Test Case:||Blocked By:|
Attached is a patch for Text.PrettyPrint?.HughesPJ that adds a 'hex' function to print hexidecimal numbers.
The only point that I exepect to be contended is it varies slightly from the surrounding functions in that it allows one to control the number of characters printed (see below).
hex 5 31
hex 2 8
hex 3 7495
While we can argue about the consistancy issues, I almost always want to control the number of digits when I'm dealing with hex. Hence I feel this is a reasonable special case.