From: Zachary Kanfer <zkanfer@gmail.com>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Proposal to change naming format to allow package-prefix/function-name
Date: Mon, 30 Dec 2019 16:50:57 -0500 [thread overview]
Message-ID: <CAFXT+ROE6LYaCU+0mCf4jMzXCQT5K_-xXnZD279W+EmYmWBERQ@mail.gmail.com> (raw)
In-Reply-To: <CAAeL0SR2d-BVzSr-mt-AuSqCR-tzHgPucyD2+uvdfiN=-Ty6hQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
> But if it were, in a Lisp context colon (:) would make more sense IMHO,
as it is used in Common Lisp to separate the namespace ("package", in
CL-speak) from the symbol name.
Perhaps. My gut feeling is that package-prefix/function-name is more
readable than package-prefix:function-name, and also more obvious to new
users, but I think either would be better than the current dash separation.
I would think that any future implementation of namespaces would be able to
work with any character chosen here; it wouldn't be just a copy-and-paste
of CL code.
On Mon, Dec 30, 2019 at 7:04 AM Juanma Barranquero <lekktu@gmail.com> wrote:
>
> On Mon, Dec 30, 2019 at 8:03 AM Zachary Kanfer <zkanfer@gmail.com> wrote:
>
> > Some Elisp functions that are part of Emacs already follow this format.
> > 1. Many eshell functions already follow this format, for example
> eshell/ls, eshell/exit, and eshell/define.
> > 2. Pcomplete functions use this format, even some for more than one
> hierarchical level, e.g. pcomplete/gzip,
> pcomplete/erc-mode/complete-command, pcomplete/org-mode/block-option/src.
> > 3. Org-plot has half a dozen functions, like org-plot/goto-nearest-table.
>
> I think this proposal is unlikely to gain traction. But if it were, in a
> Lisp context colon (:) would make more sense IMHO, as it is used in Common
> Lisp to separate the namespace ("package", in CL-speak) from the symbol
> name. That would make easier to adapt to CL-style namespaces, if they were
> implemented in Emacs some day (which I think won't ever happen, if previous
> discussions on the subject are to be believed).
>
>
>
[-- Attachment #2: Type: text/html, Size: 2058 bytes --]
next prev parent reply other threads:[~2019-12-30 21:50 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-30 7:02 Proposal to change naming format to allow package-prefix/function-name Zachary Kanfer
2019-12-30 12:03 ` Juanma Barranquero
2019-12-30 13:12 ` Elias Mårtenson
2019-12-30 21:50 ` Zachary Kanfer [this message]
2019-12-31 0:45 ` Richard Stallman
2020-01-02 18:32 ` Sam Steingold
2019-12-31 0:06 ` Adam Porter
2019-12-31 10:14 ` Lars Ingebrigtsen
2019-12-31 10:54 ` Ihor Radchenko
2019-12-31 12:06 ` Clemens Radermacher
2019-12-31 14:48 ` Teemu Likonen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFXT+ROE6LYaCU+0mCf4jMzXCQT5K_-xXnZD279W+EmYmWBERQ@mail.gmail.com \
--to=zkanfer@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).