all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Tom Levy <tomlevy93@gmail.com>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, 59576@debbugs.gnu.org
Subject: bug#59576: 29.0.50; named-let doesn't support dynamic binding
Date: Sat, 26 Nov 2022 10:48:54 +0100	[thread overview]
Message-ID: <8DE91C19-0401-4448-82E6-64AA96C677CE@acm.org> (raw)
In-Reply-To: <E1oybec-0001tP-MU@145.40.109.133>

`named-let` being a looping construct, it makes little sense to use it in dynamic binding where TCO opportunities are severely limited. Ideally we should just signal an error if an attempt to use it in dynbound code is made. Users will thank us for that (at least they should, if they have any sense).

Second-best would be to inhibit all TCO in dynbound code but whom would that really benefit?

(Regarding your proposal, generating worse code in lexbind mode isn't a wonderful outcome.)






  reply	other threads:[~2022-11-26  9:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-25 16:34 bug#59576: 29.0.50; named-let doesn't support dynamic binding Tom Levy
2022-11-26  9:48 ` Mattias Engdegård [this message]
2022-11-26 10:36   ` Tom Levy
2022-11-26 17:45   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-08-21 12:17     ` Mattias Engdegård

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=8DE91C19-0401-4448-82E6-64AA96C677CE@acm.org \
    --to=mattiase@acm.org \
    --cc=59576@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=tomlevy93@gmail.com \
    /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.