One difficulty in that transformation for clojure might be that "{"
already has significance to the clojure reader, denoting the beginning
of a map literal.
If { in that notation is exclusively used for infix binary operations,
you could get around it, because in that context the {...} expression
would always have exactly three elements, which isn't legal for a map.
But it would increase potential confusion:
{1 <} is a map from the integer 1 to the function <
{1 < 2} is the application of < to the arguments 1 and 2
(Odd seeing you here, dominic!)
On Mon, Mar 25, 2013 at 3:52 AM, poetix <
domin...@gmail.com> wrote:
> I really like the look of this:
>
>
http://readable.sourceforge.net/
>
> which defines a completely reversible transformation between e.g.
>
> define fibfast(n)
> if {n < 2}
> n
> fibup(n 2 1 0)
>
> and
>
> (define (fibfast n)
> (if (< n 2)
> n
> (fibup n 2 1 0)))
>
>
> and wonder how difficult it would be to support it (or something like it)
> in/for Clojure. A coffeescript-like approach might be a good first step.
>
> Any thoughts?
>
> Dominic
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to
clo...@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+u...@googlegroups.com
> For more options, visit this group at
>
http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
clojure+u...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Ben Wolfson
"Human kind has used its intelligence to vary the flavour of drinks,
which may be sweet, aromatic, fermented or spirit-based. ... Family
and social life also offer numerous other occasions to consume drinks
for pleasure." [Larousse, "Drink" entry]