Hi,
How come the following code does not throw an exception?

(defn foo []
  (do
    (map (fn [_] (throw (RuntimeException. "fail"))) [1 2])
    "no exception"))

this however does throw exception:

(defn foo []
  (map (fn [_] (throw (RuntimeException. "fail"))) [1 2]))

Is this a bug or am I missing something?

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