From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27191 invoked by alias); 5 Nov 2017 16:31:58 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 41989 Received: (qmail 7242 invoked by uid 1010); 5 Nov 2017 16:31:57 -0000 X-Qmail-Scanner-Diagnostics: from aok120.rev.netart.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(85.128.245.120):SA:0(-1.9/5.0):. Processed in 4.103503 secs); 05 Nov 2017 16:31:57 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: psprint@zdharma.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new using ClamAV (11) Date: Sun, 5 Nov 2017 17:20:17 +0100 From: Sebastian Gniazdowski To: Bart Schaefer , zsh-workers@zsh.org Message-ID: In-Reply-To: <171104120303.ZM1348@torch.brasslantern.com> References: <171104120303.ZM1348@torch.brasslantern.com> Subject: Re: Localize MATCH, MBEGIN, etc. in _zstyle and _globquals X-Mailer: Airmail (442) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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