From: "Mattias Engdegård" <mattiase@acm.org>
To: sds@gnu.org
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: byte-opt.el vs declare
Date: Wed, 27 Jul 2022 10:31:19 +0200 [thread overview]
Message-ID: <DE46DB09-5E5B-42F0-AC7B-0C2C630B4894@acm.org> (raw)
In-Reply-To: <lz4jz31wb0.fsf@3c22fb11fdab.ant.amazon.com>
26 juli 2022 kl. 21.57 skrev Sam Steingold <sds@gnu.org>:
> I thought that byte-opt was intended to set `pure'. `side-effect-free'
> &c properties for functions that are defined in C and functions defined
> in Lisp should get these from `declare'.
Not official by any means, but I'd suggest `declare` be used for new Lisp functions and set the properties for C functions in byte-opt for now.
There is a considerable legacy, mind, and it's probably not worth changing all of it right away. If there turns out to be a more substantial benefit from doing so then someone working on the byte-compiler will deal with it.
prev parent reply other threads:[~2022-07-27 8:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-26 19:57 byte-opt.el vs declare Sam Steingold
2022-07-27 8:31 ` Mattias Engdegård [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=DE46DB09-5E5B-42F0-AC7B-0C2C630B4894@acm.org \
--to=mattiase@acm.org \
--cc=emacs-devel@gnu.org \
--cc=sds@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.