From: Max Brieiev <max.brieiev@gmail.com>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: emacs-devel@gnu.org
Subject: Re: Issues with named-led and pcase inside iter-defun.
Date: Tue, 12 Sep 2023 11:55:26 +0300 [thread overview]
Message-ID: <87a5trzs75.fsf@gmail.com> (raw)
In-Reply-To: <87bke82rb5.fsf@web.de> (Michael Heerdegen's message of "Tue, 12 Sep 2023 02:01:02 +0200")
Michael Heerdegen <michael_heerdegen@web.de> writes:
> AFAIU you must avoid yielding from inside a lambda expression in
> the expanded code.
I see. The hard part is to know in advance what macros expand to lambda
expressions.
In pcase, probably some handlers expand to lambda, but some don't. So
iter-yield may work in some cases, but not in others.
In named-let, it probably should work when a recursive call happens in
tail position. In my code, though, it is always a tail call, and yet it
still fails sporadically.
next prev parent reply other threads:[~2023-09-12 8:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 8:47 Issues with named-led and pcase inside iter-defun Max Brieiev
2023-09-12 0:01 ` Michael Heerdegen
2023-09-12 8:55 ` Max Brieiev [this message]
2023-09-13 4:21 ` Michael Heerdegen
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=87a5trzs75.fsf@gmail.com \
--to=max.brieiev@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=michael_heerdegen@web.de \
/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.