On Wed, Dec 21, 2011 at 12:27 PM, Peter Danenberg <[email protected]> wrote:
> Despite Brian Carpenter's warning about torches and pitchforks [1],
> I've decided to release a reader-macros package; may Zeus forgive me
> for opening this pithos:
>
>  https://github.com/klutometis/reader-macros
>
> Here's a trivial example where we implement a reverse-string reader:
>
>  (use '[clojure.string :only (reverse)])
>
>  (set-macro-character \"
>   (fn [reader quote]
>     (reverse (macro-read-string reader quote))))
>
>  (println "hello, reader macros")
>  => sorcam redaer ,olleh
>
> My friend Evan Gamble [2] mentioned that he might use reader macros
> for parsing his new language Timeless; in which case, we'd have an
> actual use-case.
>
> Until then, we have new toys.
>

Ha, I just looked at the source, it's really weird to see λ in "clojure" code.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to