emacs-devel
[Top][All Lists]
Advanced

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

Re: CL package suggestion


From: Ilya Shlyakhter
Subject: Re: CL package suggestion
Date: Mon, 9 Apr 2012 00:54:01 -0400

So, about the cl package:

If remove-if is renamed cl-remove-if and then 'remove-if defaliased to 'cl-remove-if,
is it now ok to (require 'cl) at runtime?  Won't the alias now conflict with whatever
definition of remove-if the user had?   
And if you don't (require 'cl) at runtime, then you can't call cl-remove-if at runtime,
since it might not be available.

One could move cl-remove-if etc into a separate module called cl-funcs,
so if you want to call cl-remove-if at runtime you (require 'cl-funcs).
This would somewhat break up the logical structure of the cl package,
since things will get grouped by whether they're functions or macros rather than by topic.

Suggestions?

On Wed, Apr 4, 2012 at 9:06 AM, Stefan Monnier <address@hidden> wrote:
> Agree about cl- being better than ecl- .
> Btw, if remove-if becomes defalias'ed to cl-remove-if, aren't the two calls
> indistinguishable to the byte compiler?

The name is different, so the compiler can definitely tell the difference.

> If they are, and calling cl-remove wouldn't trigger a warning,
> wouldn't remove-if calls also become warning-less?

Not necessarily, no.


       Stefan


reply via email to

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