Ahh ok, makes sense.

mandag 13. april 2015 12.45.35 UTC+2 skrev David Nolen følgende:
>
> The only reason :default exists is because *anything* in JavaScript can be 
> thrown and there needs to be some way to catch non-Error derived values. 
> This is not the case for Java of course. :default could probably be aliased 
> to Throwable, but in the meantime differences like this are now handleable 
> via conditional reading.
>
> David
>
> On Mon, Apr 13, 2015 at 6:37 AM, Robin Heggelund Hansen <
> skinn...@gmail.com <javascript:>> wrote:
>
>> Hmm... In Clojurescript you can do the following
>>
>> (try
>>   ;; throw something
>>   (catch :default e
>>      e))
>>
>> When I try the same thing in Clojure, it seems to not be supported. Is 
>> there any plans to support this syntax in Clojure 1.7?
>>
>> -- 
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "ClojureScript" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojurescrip...@googlegroups.com <javascript:>.
>> To post to this group, send email to clojur...@googlegroups.com 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/clojurescript.
>>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to