From: arthur miller <arthur.miller@live.com>
To: "Alfred M. Szmidt" <ams@gnu.org>,
"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Better documentation for non-binding clauses of if-let and friends
Date: Mon, 11 Nov 2024 09:28:52 +0000 [thread overview]
Message-ID: <DU2PR02MB10109FAD6856DDB956AA1904596582@DU2PR02MB10109.eurprd02.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1368 bytes --]
> I rather agree with Joost on that other thread regarding the
> usefulness of the FOO-let macros and their condition-only,
> non-binding clauses.
>
>I don't think anyone is arguing about their usefulness, only that the
>macros are too smart for their own good.
I think I will start argue against while-let usefulness :).
Now when I have seen that while-let is a special case of named-let,
I think that while-let is a bad construct for some reasons:
1. it is not general
2. the special case in which it does not work is hidden
3. the semantic of "read-only" loop variables is uncommon and unexpected
> > There is no mention of this in the manual, that only says that SPEC is
> > like the one in LET*.
That is the gotcha that got me: it says SPEC is "like let*", so this "-let*"
in the name take my mind to believe it established ordinary let*-bindings.
However, in while-let, these are not ordinary, but read-only. So they are
not the same, since they don't obey the ordinary behavior of let* bindings.
> But I agree with you that the manual is incomplete or even
> wrong here.
If that semantic of while-let is desirable to have, than the manual would
have to catch the details of while-let and its non-general nature, read-only
semantic of bindings and perhaps mention the named-let as a more general
alternative.
[-- Attachment #2: Type: text/html, Size: 5172 bytes --]
next reply other threads:[~2024-11-11 9:28 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 9:28 arthur miller [this message]
2024-11-11 9:58 ` Better documentation for non-binding clauses of if-let and friends Alfred M. Szmidt
2024-11-11 10:23 ` Sv: " arthur miller
2024-11-11 10:26 ` Joost Kremers
2024-11-11 10:53 ` Sv: " arthur miller
2024-11-11 11:18 ` Joost Kremers
2024-11-11 21:21 ` [External] : " Drew Adams
2024-11-11 22:51 ` Joost Kremers
2024-11-12 0:26 ` Drew Adams
2024-11-12 8:07 ` Joost Kremers
-- strict thread matches above, loose matches on Subject: below --
2024-11-08 16:25 Is this a bug in while-let or do I missunderstand it? arthur miller
2024-11-09 9:29 ` Yuri Khan
2024-11-09 13:03 ` Sv: " arthur miller
2024-11-09 13:15 ` Yuri Khan
2024-11-09 13:38 ` Sv: " arthur miller
2024-11-09 13:41 ` Yuri Khan
2024-11-09 13:47 ` Sv: " arthur miller
2024-11-09 14:04 ` Yuri Khan
2024-11-09 16:33 ` Alfred M. Szmidt
2024-11-09 16:44 ` Eli Zaretskii
2024-11-09 18:07 ` [External] : " Drew Adams
2024-11-09 18:18 ` Alfred M. Szmidt
2024-11-09 20:02 ` Jens Schmidt
2024-11-10 11:44 ` Alfred M. Szmidt
2024-11-10 12:24 ` Better documentation for non-binding clauses of if-let and friends Jens Schmidt
2024-11-10 14:51 ` Sean Whitton
2024-11-10 16:58 ` Jens Schmidt
2024-11-11 10:03 ` Alfred M. Szmidt
2024-11-11 8:20 ` Alfred M. Szmidt
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=DU2PR02MB10109FAD6856DDB956AA1904596582@DU2PR02MB10109.eurprd02.prod.outlook.com \
--to=arthur.miller@live.com \
--cc=ams@gnu.org \
--cc=emacs-devel@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.