Hi,
(pprint '(1 2 (4 5) 3))
doesn't produce
(1 2
(4 5)
3),
but (1 2 (4 5) 3)
With LispWorks Windows. What am I doing wrong?
Re: pprint doesn't work with LispWorks
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
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.
Cheers, Dave
Slowly but surely the world is finding Lisp.
http://www.findinglisp.com/blog/