emacs-devel
[Top][All Lists]
Advanced

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

Re: Proper namespaces in Elisp


From: Vladimir Sedach
Subject: Re: Proper namespaces in Elisp
Date: Mon, 04 May 2020 18:24:52 -0700
User-agent: mu4e 1.3.10; emacs 26.2

João Távora <address@hidden> writes:
>> Common Lisp does not do a good job of this, because whether or not a
>> symbol's package prefix is printed depends on the current package you
>> are in when printing.
>
> How is that a flaw?

You just pointed it out:

> If you want to always print/read consistently, print everything
> from a package that doesn't use any other package, even :CL
> SLIME/SLY do that.

To get reading of printed s-expressions to work reliably in Common
Lisp requires a lot of coordination (not just packages). Any Elisp
namespace system should not add extra burden to reading of printed
s-expressions.

This is very on-topic, and also a good argument to avoid "magic
comments" and per-file settings. For example, if file A is
read/loaded, then file B is read/loaded, the effect should be the
same as reading/loading the concatenation of A and B. It is not clear
if this would be the case with Nic's proposal.

--
Vladimir Sedach
Software engineering services in Los Angeles https://oneofus.la



reply via email to

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