brandonbloom / fipp

Fast Idiomatic Pretty Printer for Clojure
525 stars 44 forks source link

Extensible conversion to pretty docs #8

Closed brandonbloom closed 9 years ago

brandonbloom commented 11 years ago

Protocols are not flexible enough, for a variety of reasons.

brandonbloom commented 11 years ago

As discussed in other ticket, one possible approach is dynamic extend-type. See http://web.archive.org/web/20130511051405/http://dosync.posterous.com/51626638

CLJS support pending. See http://dev.clojure.org/jira/browse/CLJS-527

brandonbloom commented 9 years ago

Now that we have the ctx variable, it seems like it would be possible to do expansion passing style. See https://cs.au.dk/~hosc/local/LaSC-1-1-pp53-75.pdf

brandonbloom commented 9 years ago

The IVisitor type makes creating new edn printers dramatically easier, so there is less value in this work. The visitor also acts as a context object for an expansion passing style, if that route's still interesting. Anyway, going to close this. May revisit after discussing impact of the clj17 branch on Pudget.