I was wondering if the following 'get' behaviors are worth a chat.
Apologies if this is known issue, but they don't seem impossible corner
cases to me.
#1
This one looks read-only access to me and I'm not sure why a suitable
comparator should be in place.
(get (sorted-map :a 1 :b 2) "a" "not found");; ClassCastException
#2
'get' is happy with other transients (namely vectors and maps) but fails
silently on sets:
(get (transient #{0 1 2}) 1);; nil
#3 (.intValue x) can throw away bits with precision loss. Sufficiently large
keys produce the following:
(get ["a" "b" "c"] 4294967296) ;; "a"
Thanks
Renzo
--
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/d/optout.