Ouch! But that actually makes a lot of sense.

On Mon, 13 Apr 2015 14:58 Alex Miller <a...@puredanger.com> wrote:

> There is a ticket to consider a portable solution to this issue:
>
> http://dev.clojure.org/jira/browse/CLJ-1293
>
>
> On Monday, April 13, 2015 at 5:45:35 AM UTC-5, David Nolen wrote:
>
>> 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> 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 clojurescript+unsubscr...@googlegroups.com.
> To post to this group, send email to clojurescr...@googlegroups.com.
> 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