From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Need advice for naming practice for namespaces in Elisp.
Date: Wed, 06 Feb 2013 13:59:01 -0500 [thread overview]
Message-ID: <jwv4nhpff5g.fsf-monnier+gmane.emacs.help@gnu.org> (raw)
In-Reply-To: 87ehguo5ha.fsf@gavenkoa.example.com
> I read very small amount of elisp code and found practice to put '->'
> in the name of elisp var/func:
I use -> sometimes, typically for access to a struct's fields.
This comes from my learning lispy languages via Scheme.
> Also I search for dot in names:
I (strongly) recommend against the use of "." in symbols.
"(erc-response.sender)" could also be interpreted as "(erc-response
. sender)" and historically Elisp has not been very good at resolving
this ambiguity in a reliable way.
> and for colon:
Colon is typically used in a Common-Lisp way, to separate the "module
name" from the specific definition.
> Seems that official sources don't often use special marker to separate
> package name and command and some times uses '->', ':' and '.'
Common usage is to use "-".
Stefan
next prev parent reply other threads:[~2013-02-06 18:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-05 20:44 Need advice for naming practice for namespaces in Elisp Oleksandr Gavenko
2013-02-06 6:42 ` Drew Adams
2013-02-06 18:59 ` Stefan Monnier [this message]
2013-02-07 19:04 ` Oleksandr Gavenko
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=jwv4nhpff5g.fsf-monnier+gmane.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@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.