Slava's away on vacation right now. Personally, I find this a bit
annoying too, when something like .s is done. It happens because the
prettyprinter is structured to be configured with both length and
depth limits. .s limits the depth to 1. When a length limit is
surpassed, you might get something like "{ 0 1 2 3 4 5 6 ..." But
maybe the prettyprinter should do something like this, in certain
cases like .s: compare the depth of one pprint with the higher depth
pprints, and chose the one with the lowest length. Alternatively,
maybe the depth limit could work slightly differently. When the depth
runs out but a compound object needs to be printed, it could print
either ~type~ *or* the compound object to a depth of 1, if the length
of that print is less than, say, 10 (it would be configurable).
Anyway, just an idea. You could try one implementing those ideas (or
whatever else solves the problem), Ed, and if it works out, I'll
commit it to the core.Dan On 7/1/07, Eduardo Cavazos <[EMAIL PROTECTED]> wrote: > Slava, > > This is from the tty listener: > > ( scratchpad ) [ 10 [ 20 ] [ 30 [ 40 ] ] ] > ---------- > [ 10 ~quotation~ ~quotation~ ] > ( scratchpad ) dup . > [ 10 [ 20 ] [ 30 [ 40 ] ] ] > ---------- > [ 10 ~quotation~ ~quotation~ ] > ( scratchpad ) > > I think the behaviour of the pretty printer is not good in this case. The > fully expanded object is actually shorter than the pretty printed one. > > Ed > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
