zsh-workers
 help / color / mirror / code / Atom feed
From: Sebastian Gniazdowski <psprint@zdharma.org>
To: Bart Schaefer <schaefer@brasslantern.com>, zsh-workers@zsh.org
Subject: Re: Localize MATCH, MBEGIN, etc. in _zstyle and _globquals
Date: Sun, 5 Nov 2017 17:20:17 +0100	[thread overview]
Message-ID: <etPan.59ff3a41.360372a8.11225@zdharma.org> (raw)
In-Reply-To: <171104120303.ZM1348@torch.brasslantern.com>



On 4 Nov 2017 at 20:03:03, Bart Schaefer (schaefer@brasslantern.com) wrote:
> Substitution is *very* tightly connected to the internal glob matcher;
> I think it'd be quite a significant refactoring effort to replace that
> with calls to the externally-linked regex library -- plus we already
> have the PCRE vs. standard regex contortion. There'd also need to be
> different syntax (maybe just another (#) marker would to work) to signal
> when you want regex interpretation, etc.

I rather cannot dispute, and I expected that code is tightly tied to globbing, but it's just worth mentioning that often, when something isn't done at first attempt, it starts to be viewed as enormously hard. Even documentation update, when someone doesn't last to write the 4 sentences more on the last item, can take months. But here I believe that using regex in / substitution is actually hard.

-- 
Sebastian Gniazdowski
psprint /at/ zdharma.org


      reply	other threads:[~2017-11-05 16:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-29 11:40 Sebastian Gniazdowski
2017-10-29 22:07 ` Phil Pennock
     [not found] ` <etPan.59f655ed.1f659851.98a8@AirmailxGenerated.am>
2017-11-02 19:09   ` Sebastian Gniazdowski
2017-11-02 19:57     ` Phil Pennock
     [not found]     ` <etPan.59fb7aea.497d9379.98a8@AirmailxGenerated.am>
2017-11-04 16:57       ` Sebastian Gniazdowski
2017-11-04 19:03         ` Bart Schaefer
2017-11-05 16:20           ` Sebastian Gniazdowski [this message]

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=etPan.59ff3a41.360372a8.11225@zdharma.org \
    --to=psprint@zdharma.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).