This is the mail archive of the mailing list for the guile project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Reintroducing old `defined?'

Keith Wright <> writes:

> >                                                     Ok "undefine" is
> >    not yet standardized either, but should be considered being
> >    standardized in the scheme standard as well, as non essential.

Does r5rs mention `undefine' at all?  I don't like undefine because
it is hard to implement:

(define (b) (display a))
(define a 12)
(b)                        -> 12

(undefine a)
a                          -> ERROR
(b)                        -> value "undefined"
                              ^^^^^^^^^^^^^^^^^ WRONG!

So I think it would be better to drop `undefine' completely.  


Doesn't `(environment-bound? (car (the-environment)) <sym>)' do what you
want?  (See Jim Blandy's environment proposal).