Chris Dean <ctd...@sokitomi.com> writes:

>> I really like the clojure.contrib.logging library, but I find myself
>> often getting tricked into thinking it works like println:
>
> My $0.02: Checking the the type of the last arg seems too dwim to me,
> but it will certainly work.  I've been thinking recently that
> info/warn/etc should be println or printf like and not take an
> exception, while log itself should be the only thing that does take an
> exception.  That would break lots of code, so it's probably off the
> table.

Yeah, backwards-compatibility is the reason I kept it so it could take
an exception for the last argument.

I agree that it's cleaner to just use the log macro directly if you have
a throwable argument, but unfortunately since this library is part of
contrib it's not really possible to make breaking changes.

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