This raises a question I've wondered about for a while: I believe
Clojure makes java.lang.* available by default but not clojure.lang.*
- what is the logic behind that? (I'm not questioning whether it's
right or wrong, just curious as to why...)

Thanx,
Sean

On Mon, Feb 18, 2013 at 5:05 AM, Dave Sann <daves...@gmail.com> wrote:
> I don't expect this to go into 1.5.
>
> But the point raised by vemv is a good one.
>
> Clojurescript makes ExceptionInfo available by default. If this were also
> the case in clojure - it would help with portable code. Specifically
> catching ExceptionInfo. (longer comments on the thread referenced
> previously).
>
> Dave
>
>
> On Monday, 18 February 2013 12:18:15 UTC+11, Dave Sann wrote:
>>
>> timely comment.
>>
>> you can create and throw it but catching it requires the imported type.
>> (not withstanding catching the generic Exception on the JVM).
>>
>> see the link for suggestion/discussion on making this more "uniform" for
>> clj and cljs:
>>
>> https://groups.google.com/d/topic/clojurescript/A3wH_Hm3OmQ/discussion
>>
>> Dave
>>
>> On Monday, 18 February 2013 03:54:00 UTC+11, Baishampayan Ghose wrote:
>>>
>>> You can create an ExceptionInfo instance easily by using the core fn
>>> `ex-info`. So something like ... (throw (ex-info {:foo "bar"})) works
>>> fine. ~BG
>>>
>>> On Sun, Feb 17, 2013 at 10:05 PM, vemv <ve...@vemv.net> wrote:
>>> > Couldn't clojure.lang.ExceptionInfo be imported by default? That'd
>>> > surely
>>> > help making ExceptionInfo the idiomatic exception to be thrown.
>>> >
>>> >
>>> > On Thursday, February 14, 2013 4:33:42 AM UTC+1, stuart....@gmail.com
>>> > wrote:
>>> >>
>>> >> If you care about Clojure 1.5 compatibility for your codebase, please
>>> >> test
>>> >> it against RC 16 as soon as possible.
>>> >>
>>> >> You can get the source and build it yourself from [1], or wait for
>>> >> Maven
>>> >> Central [2] to pick up the CI build, which usually takes a few hours.
>>> >>
>>> >> Thanks!
>>> >> Stu
>>> >>
>>> >> [1] https://github.com/clojure/clojure
>>> >> [2] http://bit.ly/WEnjAi
>>> >
>>> > --
>>> > --
>>> > You received this message because you are subscribed to the Google
>>> > Groups "Clojure" group.
>>> > To post to this group, send email to clo...@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+u...@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+u...@googlegroups.com.
>>> >
>>> > For more options, visit https://groups.google.com/groups/opt_out.
>>> >
>>> >
>>>
>>>
>>>
>>> --
>>> Baishampayan Ghose
>>> b.ghose at gmail.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Clojure Dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure-dev+unsubscr...@googlegroups.com.
> To post to this group, send email to clojure-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/clojure-dev?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
-- 
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/groups/opt_out.


Reply via email to