[Top][All Lists]

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

Naming conventions for defining macros

From: Philipp Stephani
Subject: Naming conventions for defining macros
Date: Tue, 24 Feb 2015 06:45:28 +0000


the manual page about coding conventions says: "Constructs that define a
function or variable should be macros, not functions, and their names
should start with `define-'." This recommendation is at odds with the usual
recommendation to prefix all non-local names with the package name and
doesn't seem to be widely followed by either Emacs (e.g. ert-deftest,
cl-defstruct) or popular third-party packages (e.g. magit-define-command).
Should we get rid of this recommendation? It amounts to special-casing a
certain class of names without much benefit.


reply via email to

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