emacs-devel
[Top][All Lists]
Advanced

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

Re: Proper namespaces in Elisp


From: João Távora
Subject: Re: Proper namespaces in Elisp
Date: Sat, 9 May 2020 19:35:54 +0100

On Sat, May 9, 2020 at 7:32 PM Daniel Colascione <address@hidden> wrote:
>
>
>
> On 5/9/20 11:23 AM, João Távora wrote:
> > On Sat, May 9, 2020 at 6:45 PM Daniel Colascione <address@hidden
> > <mailto:address@hidden>> wrote:
> >
> >
> >     Can you give a concrete example of a situation in which it'd be
> >     useful to
> >     do that? I think other people on the thread are right about
> >     discouraging
> >     bulk naked symbol imports.
> >
> >
> > For a submodule that you do control, it's not such a bad idea.
>
> Concrete example? If you want inheritance, you can get it with EIEIO.

When writing a namespaced foo-tests.el library for your namespaced
foo.el library, for example.  Or for a big enough foo program, a foo-utils.el
that exports utils that only foo.el needs and noone else.

EIEIO is Elisp's CLOS, AFAIK.  I use it, but don't know what it has to do with
namespacing.

João



reply via email to

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