From: Juanma Barranquero <lekktu@gmail.com>
To: Richard Stallman <rms@gnu.org>
Cc: Eli Zaretskii <eliz@gnu.org>,
Stefan Monnier <monnier@iro.umontreal.ca>,
Emacs developers <emacs-devel@gnu.org>
Subject: Re: master a6b5985: Avoid duplicated character classes in rx
Date: Sat, 7 Dec 2019 06:45:46 +0100 [thread overview]
Message-ID: <CAAeL0STTjC1XYhLcuvyaj4WYBOWUG3Q94iyA=82=40abeaVPHQ@mail.gmail.com> (raw)
In-Reply-To: <E1idS14-0003ZP-EA@fencepost.gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]
On Sat, Dec 7, 2019 at 5:48 AM Richard Stallman <rms@gnu.org> wrote:
> What does Common Lisp say about the return value of 'push'?
From the Common Lisp Hyperspec:
*Macro* *PUSH*
*Syntax:*
*push* *item place* => *new-place-value*
*Arguments and Values:*
*item*---an *object* <26_glo_o.htm#object>.
*place*---a *place* <26_glo_p.htm#place>, the *value* <26_glo_v.htm#value> of
which may be any *object* <26_glo_o.htm#object>.
*new-place-value*---a *list* <26_glo_l.htm#list> (the new *value*
<26_glo_v.htm#value> of *place*).
*Description:*
*push* <#push> prepends *item* to the *list* <26_glo_l.htm#list> that is
stored in *place*, stores the resulting *list* <26_glo_l.htm#list> in
*place*, and returns the *list* <26_glo_l.htm#list>.
> If Common Lisp describes a certain return value for 'push',
> people will tend to use it that way,
Yes, though as I said, it is very rarely used, at least on our sources. 34
uses
out of ~4,100.
There are also a lot like
(and test-1
test-2
...
(push item place))
but don't really depend on the return value of `push', they're just using
`and'
as a conditional.
> and I think it would be
> a waste of time changing all code that ever depends on that return value.
At least for our sources, that time's already been wasted, whether we apply
my
patch or not.
> It would be easier to document that return value.
I tend to agree, because I don't like gratuitously discarding CL
compatibility.
[-- Attachment #2: Type: text/html, Size: 4200 bytes --]
next prev parent reply other threads:[~2019-12-07 5:45 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20191203142243.9552.27513@vcs0.savannah.gnu.org>
[not found] ` <20191203142246.0615C20A2B@vcs0.savannah.gnu.org>
2019-12-03 15:08 ` master a6b5985: Avoid duplicated character classes in rx Juanma Barranquero
2019-12-03 15:26 ` Stefan Monnier
2019-12-03 15:33 ` Mattias Engdegård
2019-12-03 16:01 ` Stefan Monnier
2019-12-03 16:06 ` Juanma Barranquero
2019-12-03 17:37 ` Eli Zaretskii
2019-12-03 17:46 ` Juanma Barranquero
2019-12-03 18:34 ` Stefan Monnier
2019-12-03 18:12 ` Drew Adams
2019-12-03 17:39 ` Stefan Monnier
2019-12-03 17:51 ` Juanma Barranquero
2019-12-03 18:36 ` Stefan Monnier
2019-12-03 18:43 ` Juanma Barranquero
2019-12-04 4:36 ` Richard Stallman
2019-12-04 5:38 ` Juanma Barranquero
2019-12-03 19:20 ` Michael Welsh Duggan
2019-12-03 20:21 ` Stefan Monnier
2019-12-04 11:22 ` Mattias Engdegård
2019-12-06 18:49 ` Juanma Barranquero
2019-12-06 19:45 ` Drew Adams
2019-12-06 20:11 ` Juanma Barranquero
2019-12-10 3:27 ` Adam Porter
2019-12-10 4:13 ` Stefan Monnier
2019-12-10 4:20 ` Adam Porter
2019-12-10 6:09 ` Juanma Barranquero
2019-12-10 6:32 ` Juanma Barranquero
2019-12-06 19:46 ` Eli Zaretskii
2019-12-07 4:48 ` Richard Stallman
2019-12-07 5:45 ` Juanma Barranquero [this message]
2019-12-07 15:18 ` Drew Adams
2019-12-08 5:13 ` Richard Stallman
2019-12-03 17:39 ` Drew Adams
2019-12-03 15:36 ` Juanma Barranquero
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAAeL0STTjC1XYhLcuvyaj4WYBOWUG3Q94iyA=82=40abeaVPHQ@mail.gmail.com' \
--to=lekktu@gmail.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).