emacs-devel
[Top][All Lists]
Advanced

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

Re: Proper namespaces in Elisp


From: Stefan Monnier
Subject: Re: Proper namespaces in Elisp
Date: Thu, 07 May 2020 14:17:38 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> ;;; Shorthand: (("vl-" . "very-long-prefix-")
> ;;;             ("yalp-" . "yet-another-long-prefix-"))

Adding such "local, read-time prefix remapping" does sound to me like
the best approach in the context of Elisp, indeed.

It avoids the problem of non-prefixed symbols being implicitly prefixed
with the name of the current package (which introduces the problem of
unintended addition of that prefix to symbols which were really meant to
stay without prefix), it should interact fairly well with existing
Elisp code, it doesn't need to know what's a definition or a use or
anything else of the sort, and it's hopefully simple and regular enough
that non-expert users wouldn't be endlessly confused by corner cases.


        Stefan




reply via email to

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