[Top][All Lists]

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

Re: Proper namespaces in Elisp

From: Andrea Corallo
Subject: Re: Proper namespaces in Elisp
Date: Sat, 09 May 2020 08:37:15 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Daniel Colascione <address@hidden> writes:

> So there are three basic operations we can support: in Python syntax,
> 1) from PKG import * (exposing PKG.foo as foo), 2) import PKG as p
> (exposing PKG.foo as p.foo) and 3), from PKG import foo (exposing
> PKG.foo as foo).  CL supports all three. I'm most interested in
> supporting #2, since that's closest to existing use. The lexspace
> prototype posted earlier today supports #3 and #1 (the latter via
> lexspace inheritance) only, but I think we should do #2 instead

I suspect we'll need all threes anyway.

> and I
> think we can do it without runtime overhead.

I agree with you.  I think only one additional pointer chase is
sufficent for that but I'd do this only for (byte-)compiled code (see my
replay on the prototype thread).



reply via email to

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