Page 1 of 1
pprint doesn't work with LispWorks
Posted: Fri Nov 26, 2010 11:08 am
by imba
Hi,
doesn't produce
With LispWorks Windows. What am I doing wrong?
Re: pprint doesn't work with LispWorks
Posted: Sat Nov 27, 2010 6:29 pm
by Paul Donnelly
I think (1 2 (4 5) 3) is prettier than the other. If you want another behaviour, you could write your own printing routine.
Re: pprint doesn't work with LispWorks
Posted: Mon Nov 29, 2010 9:25 pm
by findinglisp
To follow-up on Paul's post, most pretty printers won't start to indent things until such time as the data gets close to a line length. If it all fits on a single line, per Paul's comment, it's pretty by definition. If you're looking for specific indentation behavior, you might have to write things yourself. Also, sometimes versions of pprint have options that might be able to control the output better.