Pretty print in Clojure

There was a post on the Clojure mailing list yesterday, where a few people posted some trial implementations of a pretty-printer. But as mipadi said, it's not finalized yet.


A pretty printer for Clojure is available here.


clojure-contrib now has a pprint function.

The API documentation is at http://richhickey.github.com/clojure-contrib/pprint-api.html


As Chouser has mentioned, in 1.3 pprint is moved into clojure itself.

http://clojure.github.io/clojure/clojure.pprint-api.html#clojure.pprint/pprint

You can (:require clojure.pprint) and start using it.

Tags:

Clojure