On 17/09/2014 15:28, Ashton Kemerling wrote:
I wouldn't be surprised if the 1 arg form is to help people who use > along with apply, just in case the list is only 1 element long.
That is precisely why it should do the same thing with zero arguments, which is what happens when you use apply with an empty list.

I just added a comment to that effect to the bug report. IMO it should be documentation change in 1.6.x and a fix in 1.7+ - just on the off chance that some crazy person has written code like this:

  (def lst [])
  (try (apply > lst) (catch Exception _ :empty))

This code is crazy because it can return true, false or :empty. If you do that, you're doing it wrong. Still, it's not nice to break things like that in a sub-minor revision unless there's a serious security issue.

- Robert

--
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/d/optout.

Reply via email to