On Sun, Aug 5, 2012 at 7:33 AM, Chas Emerick <c...@cemerick.com> wrote:

> Quoting Rich from the mailing list thread linked above:
>
> These are bugs in user code. Map literals are in fact read as maps, so
> a literal map with duplicate keys isn't going to produce an evaluated
> map with distinct keys. If you create an array map with duplicate
> keys, bad things will happen.
>
>
>
One clarification about this quote is in order though.  If you read through
the thread, you'll see that Rich was *not* saying this in the sense of, "{1
2, 1 3} is an error, and we need to throw an exception."  He was actually
calling it an error in the sense of defending his desire to do no check at
all.  In many places, Clojure exhibits a garbage-in-garbage-out philosophy,
and this is actually what he was advocating.  He was just saying that if
someone types {1 2, 1 3}, it's their fault, and they deserve whatever bad
things come out of it.

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