From: Mikael Magnusson <mikachu@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Oliver Kiddle <opk@zsh.org>, Zsh workers <zsh-workers@zsh.org>
Subject: Re: PATCH: pcre callouts
Date: Tue, 31 Oct 2023 14:31:29 +0100 [thread overview]
Message-ID: <CAHYJk3SQ5Pt1HR2q75RTPg80iZjz5i5D=thgrcUJ=-C46s9q6Q@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7aaS8ZHQ8Rd=ZPh8cnMu-Yg_gR2TOT2YnXvdGk337-WYw@mail.gmail.com>
On 10/31/23, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Mon, Oct 30, 2023 at 8:26 PM Bart Schaefer <schaefer@brasslantern.com>
> wrote:
>>
>> You could actually use ${.pcre._} I suppose. I'm undecided on whether
>> that's better.
>>
>> We do have a precedent for that now with ${|...} creating a scope.
>
> It occurs to me that if you create a scope, you could also create $_
> in that scope with PM_HIDE set, and then use $_ directly with no
> namespace needed.
Wouldn't any code inside need to immediately store the value of $_ in
another parameter to avoid overwriting it after the first command?
Seems like an unnecessary extra step if that's the case.
--
Mikael Magnusson
next prev parent reply other threads:[~2023-10-31 13:32 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-31 0:04 Oliver Kiddle
2023-10-31 3:26 ` Bart Schaefer
2023-10-31 3:40 ` Bart Schaefer
2023-10-31 13:31 ` Mikael Magnusson [this message]
2023-10-31 15:57 ` Bart Schaefer
2023-11-01 2:04 ` Oliver Kiddle
2023-11-03 3:47 ` Bart Schaefer
2023-11-03 9:50 ` Oliver Kiddle
2023-11-04 20:57 ` Bart Schaefer
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='CAHYJk3SQ5Pt1HR2q75RTPg80iZjz5i5D=thgrcUJ=-C46s9q6Q@mail.gmail.com' \
--to=mikachu@gmail.com \
--cc=opk@zsh.org \
--cc=schaefer@brasslantern.com \
--cc=zsh-workers@zsh.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.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).