On Sun, Mar 6, 2011 at 15:55, Ken Wesson <kwess...@gmail.com> wrote:
> On Sun, Mar 6, 2011 at 8:39 AM, Chas Emerick <cemer...@snowtide.com> wrote:
>> No, you're exactly right.  Leaving aside the obvious utility of being able
>> to consume non-sexpr-structured content/data, there are plenty of domains
>> for which s-expressions are not optimal, or even well-suited.
>
> An interesting opinion. I'd like to know which specific domains you
> have in mind.

How about documentation?  It seems to me that something like Markdown [1]
reStructuredText [2] or even LaTeX [3] is easier to read and write than
raw s-expressions [4].

[1] http://daringfireball.net/projects/markdown/
[2] http://docutils.sourceforge.net/rst.html
[3] http://www.latex-project.org/
[4] 
https://github.com/relevance/labrepl/blob/master/src/labs/names_and_places.clj

It's worth noting that the PLT-Racket (nee PLT-Scheme) people came up
with a clever solution to bridge this gap: Scribble, a custom reader that
consumes a LaTeX-like syntax to produce S-Expressions [5]. So, if you're
clever you can have your cake and eat it too.

[5] http://lambda-the-ultimate.org/node/4017

I wonder, would a Clojure analog to PLT's Scribble be useful?

// Ben

-- 
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