zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: zsh-users@zsh.org
Subject: Re: coloring a substitution
Date: Fri, 11 Nov 2022 19:36:56 -0800	[thread overview]
Message-ID: <84906280-adcc-e6da-2963-141a5eb29799@eastlink.ca> (raw)
In-Reply-To: <CAN=4vMrxExZjiFd+Bpt+Mu9BiCenHVENQvqBx3As4oDBVg7X=g@mail.gmail.com>


On 2022-11-11 14:39, Roman Perepelitsa wrote:
>
> These four cases are {case-sensitive, case-insensitive} x {full,
> partial}. Moreover, the implementation of every case differs only on
> these two bits: case insensitivity is always encoded as (#i) and
> partial match always as *..*.
It is better.  More consistent.  I have no idea if the internal 
machinery is different but anyway the performance is identical.
>
> The only bizarre thing here is the names of these cases.

Don't worry about my naming, that's all just fooling around, but every 
one of my functions has these same four cases and I'm trying to work up 
a universal way of talking about it that compact since sometimes I have 
longish messages and making them as compact as possible is a good idea.  
I'll keep fooling around with it.


> Can you similarly describe these four cases, the way I've done in the
> first paragraph above? I cannot. All four look uniquely different, so
> the inventive names (BROAD, TAME, WILD, EXACT) almost look justified.

Right now I'm leaning to ?? FULL PARTIAL and EXACT.  But what's better 
than BROAD?  I don't like it, need something better.  Tho I do like 
WILD, because it's intuitively suggestive of wildcards. Not that it 
really matters, as I said this is entirely for my own use.

Thanks for the help, I learned a great deal.




      reply	other threads:[~2022-11-12  3:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-08 20:56 Ray Andrews
2022-11-08 21:10 ` Roman Perepelitsa
2022-11-08 23:49   ` Ray Andrews
2022-11-09  0:11     ` Bart Schaefer
2022-11-09  0:32       ` Ray Andrews
2022-11-09  8:19     ` Roman Perepelitsa
2022-11-11 22:24       ` Ray Andrews
2022-11-11 22:39         ` Roman Perepelitsa
2022-11-12  3:36           ` Ray Andrews [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=84906280-adcc-e6da-2963-141a5eb29799@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --cc=zsh-users@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).