> Given an annotation like this, and assuming that every? is 
> clojure.core/every? 
>
> (defn blank? [^CharSequence s] (every? #(Character/isWhitespace %) s)) 
>
> it seems as if it should be possible for the compiler to generate the 
> faster code. 
>

Yes, there is enough information for a compiler that is prepared in advance 
to handle such a special case. In a future version this may become true for 
this one case; however, I don't expect *predictably* good performance of 
HOFs/lazy seqs in the foreseeable future. If Clojure will still be a 
relevant language at the time of my retirement, by then it really could 
become a rock-solid performer :)

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