On 2013-03-11, at 6:58 AM, [email protected] wrote:
> So I understand that:
>
> (-> foo bar wibble)
>
> is equivalent to
>
> (wibble (bar (foo)))
>
> With the advantage that the latter version is better, in the sense that it's
> clearer what the final result is (the result of the call to wobble).
>
> What I don't understand is the need for -> the only thing it seems to do is
> make something Lispy appear to be imperative.
>
> Is that it?
Consider:
(-> foo
(f1 p1 p2 p3)
(f2 p4 p5 p6)
(f3 p7 p8 p9))
vs
(f3 (f2 (f1 foo p1 p2 p3) p4 p5 p6) p7 p8 p9)
(assuming I cut and pasted correctly) and you can see a little better where
this is going, especially if you tried putting real names in there.
Is it imperative? Is it declarative? Who cares?
Cheers,
Bob
>
> --
> --
> 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
> ---
> 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 [email protected].
> 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 [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
---
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.