From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Naming conventions for eieio slot accessors
Date: Sun, 04 Nov 2018 10:14:42 -0500 [thread overview]
Message-ID: <jwvh8gw5158.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: CAO0xp5y=-u76AU-PBxQr=iFjMXkDcjz7jxEdy3zAbJtF70An+w@mail.gmail.com
> I'm writing a package which takes advantage of eieio.
> When defining classes, I couldn't figure out how to name
> the accessors.
The accessor is a function, so it should at least follow the same naming
convention as used by other functions (e.g. use a "uikit-" or "uikit--"
prefix depending on whether you want to announce it as private or not).
After that, I don't think there are many more conventions to follow
because it's not used very often, so it seems nobody's come up with
a clear convention yet. I guess you could follow the
"<typename>-<fieldname>" convention used in cl-defstruct.
Stefan
prev parent reply other threads:[~2018-11-04 15:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-03 21:43 Naming conventions for eieio slot accessors Fu Yuan
2018-11-04 15:14 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvh8gw5158.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.