[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: |
Tue, 5 May 2020 15:07:16 +0100 |
On Tue, May 5, 2020 at 2:45 PM Stefan Monnier <address@hidden> wrote:
> While I largely agree that working at the level of symbols is not fully
> satisfactory, I don't think it deserves to be called "bad design".
>
> If you work at the level of bindings only you will have trouble with all
> the uses of symbols that are expected to be namespaced but appear quoted
> in code (e.g. face names, variable and function names inside macros,
> hooks, args to `add-to-list`, command names passed to `define-key`,
> command names within menus, ...).
Sure, there's that. A symbol can have many types of meaning
attached, not just "variable" and "function". This is a wonderful
thing IMO, a transparent Singleton pattern (avant la lettre btw)
We already do that in symbol plists in Elisp. But, yes, no
namespacing. That sucks.
> It's just a hard problem with no perfect solution, AFAIK.
What's your take on "why CL packages are bad", Stefan?
João
- Re: Proper namespaces in Elisp, (continued)
- Re: Proper namespaces in Elisp, Andrea Corallo, 2020/05/05
- Re: Proper namespaces in Elisp, João Távora, 2020/05/05
- Re: Proper namespaces in Elisp, Andrea Corallo, 2020/05/05
- Re: Proper namespaces in Elisp, João Távora, 2020/05/05
- Re: Proper namespaces in Elisp, Andrea Corallo, 2020/05/05
- Re: Proper namespaces in Elisp, João Távora, 2020/05/05
- Re: Proper namespaces in Elisp, Andrea Corallo, 2020/05/06
- Re: Proper namespaces in Elisp, João Távora, 2020/05/06
- Re: Proper namespaces in Elisp, Andrea Corallo, 2020/05/07
- Re: Proper namespaces in Elisp, Stefan Monnier, 2020/05/05
- Re: Proper namespaces in Elisp,
João Távora <=
- Re: Proper namespaces in Elisp, Helmut Eller, 2020/05/05
- Re: Proper namespaces in Elisp, Vladimir Sedach, 2020/05/04
- Re: Proper namespaces in Elisp, João Távora, 2020/05/04
- Re: Proper namespaces in Elisp, Vladimir Sedach, 2020/05/04
- Re: Proper namespaces in Elisp, João Távora, 2020/05/05
- Re: Proper namespaces in Elisp, Vladimir Sedach, 2020/05/05
- Re: Proper namespaces in Elisp, João Távora, 2020/05/05
- Re: Proper namespaces in Elisp, Vladimir Sedach, 2020/05/05
- Re: Proper namespaces in Elisp, João Távora, 2020/05/06
- Re: Proper namespaces in Elisp, Vladimir Sedach, 2020/05/06