> Are you planning to include scripts at some point that support pretty
> printing a source file? For example, I'd like to do this from a
> terminal window:
>
> $ cljpp foo.clj > foo2.clj

Mark,

Yeah, I've thought about  that and the simple version is very straight-
forward and I'm planning to do that soon (for testing as much as
anything).

But there are a couple of issues that make this less useful than you'd
like. The reader loses at least two significant pieces of information
that you really want to retain when you're reformatting code files:
comments and metadata defined with #^{} on defs and the like.

My thought is that the right approach to this would be a modified
version of the Clojure reader that's lossless and a modified dispatch
that would handle the comments correctly. But I haven't spent any time
looking at the reader code to see how hard that would be.

Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to