On 18/01/14, Alex Miller wrote:
> I have some sympathy for this view of things as it was a question I had
> while learning Clojure as well.
>
> The general justification for the current behavior is that the thing being
> bound is always on the left and the expression defining it is always on the
> right.
That's not really true. For example:
(let [{:keys (foo bar)} map]
...)
Here it is actually on the "right" (noting that "left" and "right" are
very relative in this case).
If I were to guess, I would say that the example above is the reason for
the design – :keys seem useful more often than naming individual keys.
Of course, I'm just guessing.
--
Stefan Kanev ¦ @skanev ¦ http://skanev.com/
Beware of the Turing tar-pit in which everything is possible but nothing of
interest is easy.
--
--
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.