On Sep 9, 8:48 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
> You seem to be asking for the
> compiler to be able to prove that your computation finishes, and if it
> doesn't then give you a sane response.
No.
--~--~-~--~~~---~--~~
You received this message becau
On Tue, Sep 9, 2008 at 7:29 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> On Sep 9, 8:48 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
>> You seem to be asking for the
>> compiler to be able to prove that your computation finishes, and if it
>> doesn't then give you a sane response.
>
> No.
On Sep 9, 10:51 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
> Would you kindly educate me in how you believe that Clojure would go
> about trapping your error and giving you an error message instead of
> running out of stack space, given that you had given it a
> non-terminating dependency list?
On Tue, Sep 9, 2008 at 8:20 PM, Mike Hinchey <[EMAIL PROTECTED]> wrote:
>
> It doesn't seem *impossible* for require and use to keep a var set of
> namespaces it's loading and check if the current is already in the set
> then give an error.
And that technique is itself open to stack overflow atta
On Tue, Sep 9, 2008 at 8:12 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> On Sep 9, 10:51 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
>> Would you kindly educate me in how you believe that Clojure would go
>> about trapping your error and giving you an error message instead of
>> running
It doesn't seem *impossible* for require and use to keep a var set of
namespaces it's loading and check if the current is already in the set
then give an error.
However, I don't think clojure supports circular dependency since
loading is sequential. I know there's a trick for functions to be
cir
On Sep 7, 10:23 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> On Sep 3, 2008, at 7:11 PM, Rich Hickey wrote:
>
>
>
> >>> On the subject of shorter, the name "clojure/load" is already in
> >>> use, but
> >>> would be a better name for "load-resources" than "load-resources".
> >>> I think
On Sep 9, 11:28 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 9, 2008 at 8:20 PM, Mike Hinchey <[EMAIL PROTECTED]> wrote:
>
> > It doesn't seem *impossible* for require and use to keep a var set of
> > namespaces it's loading and check if the current is already in the set
> > then gi
On Sep 9, 11:26 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
> For C, protection against circular dependencies is on the head of the
> programmer, in the form of #ifdef guards.
There is #import as a GCC extension (also used in Objective-C).
--~--~-~--~~~---~--~~
Well, let me be the first to say, this looks awesome. Hopefully I can
find some time to dig into it soon.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to clojure@g
On Tue, Sep 9, 2008 at 10:20 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> On Sep 9, 11:28 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
>> On Tue, Sep 9, 2008 at 8:20 PM, Mike Hinchey <[EMAIL PROTECTED]> wrote:
>>
>> > It doesn't seem *impossible* for require and use to keep a var set of
>
On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> On Sep 9, 11:26 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
>> For C, protection against circular dependencies is on the head of the
>> programmer, in the form of #ifdef guards.
>
> There is #import as a GCC extens
On Tuesday 09 September 2008 01:51, Brett Morgan wrote:
> ...
>
> Would you kindly educate me in how you believe that Clojure would go
> about trapping your error and giving you an error message instead of
> running out of stack space, given that you had given it a
> non-terminating dependency lis
On Tue, Sep 9, 2008 at 11:58 PM, Randall R Schulz <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 09 September 2008 01:51, Brett Morgan wrote:
>> ...
>>
>> Would you kindly educate me in how you believe that Clojure would go
>> about trapping your error and giving you an error message instead of
>> runn
The ` for ' trick definitely worked. Unfortunately that solves my
example problem but not my real one, since I cant quote the actual
function because its in the form of an incoming stream fed to read. I
looked for some sort of 'qualify-all' function that would act similar
to ` but didnt see one.
The binding trick seems to work. I had already tried using (in-ns)
before, but didn't realize about needing the binding, so got a nasty
error of course.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group
On Tuesday 09 September 2008 07:00, Brett Morgan wrote:
> On Tue, Sep 9, 2008 at 11:58 PM, Randall R Schulz wrote:
> > On Tuesday 09 September 2008 01:51, Brett Morgan wrote:
> >> ...
> >>
> >> Would you kindly educate me in how you believe that Clojure would
> >> go about trapping your error and
On Sep 9, 2:36 am, ntupel <[EMAIL PROTECTED]> wrote:
> On Mon, 2008-09-08 at 13:15 -0700, Rich Hickey wrote:
> > Hmm, don't do that?
>
> > Seriously, how is this a bug in Clojure, and not a bug in your
> > program, which resulted in an exception which easily leads you to your
> > problem?
>
> We
Whatever you do, don't kill Clojure while trying to save us from
ourselves.
--~--~-~--~~~---~--~~
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 unsubscrib
On Sep 9, 4:26 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> My point is, having encountered this error (which is not the kind of
> thing that is going to lurk around to bite you deep at runtime), was
> it not obvious what the problem was? Did Clojure, and the work you
> were doing, vanish? It may
Dear Clojurians,
I want to share a few thoughts on the import function.
- How about -/_ mangling also for import? This would make import
behave more like the rest of the ns-related functions. Besides
looking
more Clojure like it would allow Java classes to be named similar to
the Clojur
On Sep 9, 2008, at 3:02 PM, Meikel Brandmeyer wrote:
> I want to share a few thoughts on the import function.
>
> - How about -/_ mangling also for import? This would make import
> behave more like the rest of the ns-related functions. Besides
> looking
> more Clojure like it would allow Java
Rich mentioned a desire for the "ns-*" functions to accept either a
symbol or a namespace for arguments where they currently accept a
namespace.
Using a multimethod that dispatches on the class of that argument is
one way to do that.
Here's an example:
(defmulti ns-aliases class)
On Wed, Aug 20, 2008 at 3:06 AM, Rastislav Kassak <[EMAIL PROTECTED]> wrote:
>
> I'm not sure, if it compiles from class files, at least it probably
> wasn't true in the beginning (when I was studying GWT).
GWT appears to still compile from .java sources (not .class files). I
flailed around with
On Tue, 2008-09-09 at 23:57 +1000, Brett Morgan wrote:
> On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> >
> > On Sep 9, 11:26 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
> >> For C, protection against circular dependencies is on the head of the
> >> programmer,
On Wed, Sep 10, 2008 at 4:38 PM, ntupel <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2008-09-09 at 23:57 +1000, Brett Morgan wrote:
>> On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED]
>> <[EMAIL PROTECTED]> wrote:
>> >
>> > On Sep 9, 11:26 am, "Brett Morgan" <[EMAIL PROTECTED]> wrote:
>> >> For C, pro
On Wed, 2008-09-10 at 16:47 +1100, Brett Morgan wrote:
> On Wed, Sep 10, 2008 at 4:38 PM, ntupel <[EMAIL PROTECTED]> wrote:
> >
> > On Tue, 2008-09-09 at 23:57 +1000, Brett Morgan wrote:
> >> On Tue, Sep 9, 2008 at 10:31 PM, [EMAIL PROTECTED]
> >> <[EMAIL PROTECTED]> wrote:
> >> >
> >> > On Sep 9,
On Tue, 2008-09-09 at 07:26 -0700, Rich Hickey wrote:
> Certainly there are areas where there could be more explicit messages,
> but the detection and reporting of errors has a cost (in time,
> sometimes runtime, effort, code size and complexity) and I don't want
> to incur that cost unless it is
28 matches
Mail list logo