emacs-devel
[Top][All Lists]
Advanced

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

cl-defun vs defun (was: Should diff.elisp.xfuncname match cl-lib macros?


From: Basil L. Contovounesios
Subject: cl-defun vs defun (was: Should diff.elisp.xfuncname match cl-lib macros?)
Date: Sat, 16 Mar 2019 15:33:10 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Richard Stallman <address@hidden> writes:

> What is the feature for which people typically use cl-defun?
> Maybe we should make it a standard, builtin feature of defun.

As described under "(cl) Argument Lists", cl-defun extends defun to
support CL argument lists (with default values for optional arguments,
keyword arguments, etc.) and enclose the function body in an implicit
block.  In my limited experience, the former is by far the more
frequently used feature.

I, for one, would welcome support for CL argument lists in vanilla
defun.  Has this been discussed before?

-- 
Basil



reply via email to

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