From: Emanuel Berg <embe8573@student.uu.se>
To: help-gnu-emacs@gnu.org
Subject: Re: cl-dolist, dolist, cl-return,
Date: Wed, 08 Jul 2015 12:23:23 +0200 [thread overview]
Message-ID: <87oajn2bj8.fsf@nl106-137-147.student.uu.se> (raw)
In-Reply-To: CAOj2CQRHMwPFZEBa2F115gNvOM50uH7LY8eJHVchaX2ZLgTe9g@mail.gmail.com
John Mastro <john.b.mastro@gmail.com> writes:
> The `cl' prefix stands for Common Lisp, from whence
> the functionality there came (or was inspired by).
Of course, only confusion kicks in when it is
duplicated, but not fully so as the lack of "return"
and nil block with `dolist' shows.
>> Also: why isn't there a "neq"?
>
> I don't know the real answer, but it may be because
> then people would expect `n=', `neql', `nequal',
> `nequalp', `nstring=', and so on.
...and those would be nice! I'll add those as
I need them.
> Or perhaps some would have a "not variant" and
> others wouldn't, in which case we'd need to remember
> which did and didn't. IMHO it's simpler and cleaner
> to have a single `not' which can be used with any
> predicate as needed.
It is cleaner in one way but it also slower to type
and longer to read, and more error prone
with the additional pair of parenthesis, and more
likely to make the code overflow the right margin (I
have 85 chars/line!), so I think it is still better
with "neq" than (not (eq ... )).
--
underground experts united
http://user.it.uu.se/~embe8573
next prev parent reply other threads:[~2015-07-08 10:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-08 0:14 cl-dolist, dolist, cl-return, Emanuel Berg
2015-07-08 0:31 ` John Mastro
2015-07-08 3:09 ` Stefan Monnier
2015-07-08 10:25 ` Emanuel Berg
2015-07-08 14:44 ` Stefan Monnier
2015-07-08 23:19 ` Emanuel Berg
2015-07-09 1:49 ` John Mastro
2015-07-09 22:00 ` Emanuel Berg
[not found] ` <mailman.6636.1436479362.904.help-gnu-emacs@gnu.org>
2015-07-10 18:44 ` Barry Margolin
2015-07-11 18:52 ` Emanuel Berg
2015-07-10 16:57 ` Stefan Monnier
2015-07-08 10:23 ` Emanuel Berg [this message]
[not found] <mailman.6511.1436314595.904.help-gnu-emacs@gnu.org>
2015-07-08 3:25 ` Pascal J. Bourguignon
2015-07-08 10:17 ` Emanuel Berg
2015-07-08 14:02 ` Drew Adams
2015-07-08 23:10 ` Emanuel Berg
[not found] ` <mailman.6588.1436397019.904.help-gnu-emacs@gnu.org>
2015-07-08 23:56 ` Pascal J. Bourguignon
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=87oajn2bj8.fsf@nl106-137-147.student.uu.se \
--to=embe8573@student.uu.se \
--cc=help-gnu-emacs@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.