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.


Footnotes: 
[1]  http://briancarper.net/blog/449/

[2]  https://github.com/egamble

-- 
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
Note that posts from new members are moderated - please be patient with your 
first post.
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