On Jan 29, 4:24 am, Lukas Lehner <lehner.lu...@gmail.com> wrote: > The question is, wrapping all function in try - catch does not make is > clearer (from a processing point of view). Returning nil from broken > functions just adds a boilerplate code all the way up.
In my opinion one should only catch those exceptions one is prepared to handle. Bear in mind that there are two main forms of exception: checked exceptions and unchecked exceptions (with Exception and RuntimeException being the common parent classes, respectively). My preference is to avoid checked exceptions in my code, and in those cases where an API I'm using may throw checked exceptions, to simply wrap it in an unchecked exception, and then throw it. -- 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