Some idea for alternative clojure syntax:

(first | first coll) ; (first (first coll))
(count | first | second coll) ; (count (first (second coll)))
(nth % 2 | first coll) ; (nth (first coll) 2)

(+ 1)# ; (partial + 1)
(+ 1 (* 2))## ; (fn [nb] (+ 1 (* 2 %))

(count | first | second)## ; (fn [coll] (count (first (second coll))))
(nth | first | second coll)# ; (fn [nb] (nth (first (second coll)) nb))


2013/3/25 Laurent PETIT <laurent.pe...@gmail.com>

> As stated in the web site, there are sometimes different needs while
> creating/editing, and while reading.
>
> I see no need to create a second edition syntax.
>
> It may be interesting (and potentially way easier to prototype / play
> with the idea) to only provide alternative "views" of clojure code.
>
> My 0,02€,
>
> --
> Laurent
>
> 2013/3/25 poetix <dominic....@gmail.com>:
> > 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 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
> > ---
> > 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+unsubscr...@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> --
> 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
> ---
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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
--- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to