On Thu, Sep 30, 2010 at 12:24 AM, Baishampayan Ghose <b.gh...@gmail.com> wrote:
> clojure.contrib.string/upper-case is a trivial wrapper over
> .toUpperCase. In my humble opinion it's perfectly OK to use such
> static Java methods directly instead of writing trivial wrappers
> around them.

Except that if you use .toUpperCase, you have to remember to type hint
the input.  Any time you call a Java method without type hinting, you
take a significant performance hit.  The wrapper function takes care
of that for you.

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