guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: identity


From: Marius Vollmer
Subject: Re: identity
Date: 14 Apr 2001 11:03:38 +0200
User-agent: Gnus/5.0803 (Gnus v5.8.3) Emacs/20.7

Keisuke Nishida <address@hidden> writes:

> At 13 Apr 2001 20:10:22 +0200,
> Marius Vollmer wrote:
> > 
> > Should we remove `id' or not?
> 
> What about this?
> 
> (define (identity x) x)
> 
> (define (id x)
>   (display ";;; `id' is deprecated.  Use `identity' instead.\n")
>   x)

Isn't that a bit much?  You'll get the warning on every use of `id',
which might be an enourmous number of times.  In any case, the message
should go to (current-error-port).

Maybe this is a good opportunity to intriduce explicit support for
deprecating into the module system?  We could for example have a way
to emit a warning once when a deprecated binding is looked up.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]