From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Need advice for naming practice for namespaces in Elisp. Date: Wed, 06 Feb 2013 13:59:01 -0500 Message-ID: References: <87ehguo5ha.fsf@gavenkoa.example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1360177165 8941 80.91.229.3 (6 Feb 2013 18:59:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Feb 2013 18:59:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 06 19:59:46 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U3ADh-0005uo-3l for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 19:59:45 +0100 Original-Received: from localhost ([::1]:50167 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3ADO-0002U3-Hb for geh-help-gnu-emacs@m.gmane.org; Wed, 06 Feb 2013 13:59:26 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3ADI-0002Ts-2R for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 13:59:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U3ADG-0003WF-U5 for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 13:59:20 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36549) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U3ADG-0003WA-NO for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 13:59:18 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1U3ADW-0005mG-Kq for help-gnu-emacs@gnu.org; Wed, 06 Feb 2013 19:59:34 +0100 Original-Received: from 69-165-153-237.dsl.teksavvy.com ([69.165.153.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2013 19:59:34 +0100 Original-Received: from monnier by 69-165-153-237.dsl.teksavvy.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Feb 2013 19:59:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 69-165-153-237.dsl.teksavvy.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:cXlABeU2Da3TAQSAThjGG8Kj5X4= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89001 Archived-At: > 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