tsuraan wrote:
> Is there any way for me to tell what exceptions I'm not handling in a
> clojure function?  javac will yell at me if I don't either handle or
> declare every possibility.  I don't want the behaviour from clojure,
> but having something like *warn-on-reflection* or even a function to
> check for exception escape would be nice.  Does that exist?

The general sentiment is that checked exceptions are evil. ;)

Clojure is dynamic, and there's simply no way to tell what exceptions
a function might throw, because functions can be redefined and they
can take other functions as parameters. On the Java side, the core
code actually has a catch-all that wraps all exceptions, just to stop
Java from complaining about non-declared exceptions and non-caught
ones.

Generally, exceptions will only occur if your code has a bug. That is,
unless you're doing IO or something else inherently non-functional, in
which case you should isolate the dangerous code and exercise extra
care anyway.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to