Ouch! But that actually makes a lot of sense.

On Mon, 13 Apr 2015 14:58 Alex Miller <[email protected]> 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 <
>> [email protected]> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/clojurescript.
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to