develooper Front page | perl.perl5.porters | Postings from December 2017

Re: Revisiting smart match

Thread Previous | Thread Next
From:
Father Chrysostomos
Date:
December 6, 2017 00:44
Subject:
Re: Revisiting smart match
Message ID:
20171206004426.3254.qmail@lists-nntp.develooper.com
Zefram wrote:
> I wrote:
> >I have not yet introduced a short syntax for "when" with smartmatch,
> >nor renamed "when".
> 
> I have now done these, on the zefram/dumb_match branch.  The version of
> "when" that uses its argument as a truth value is now called "whereso",

Now *that* I like!

> and the version that smartmatches is called "whereis".  "whereso" is a
> genuine English word, meaning "wheresoever", which is appropriate for its
> usage.  It also reads nicely as an abbreviation of "where it is so that".
> "whereis" is just the concatenation of two words, to be read as "where
> the topic is a".  The "so" and "is" particles make it pretty obvious
> which has which semantics.

I still think we should keep 'when' for smartmatch, but I would be
fine with 'whereis', too.

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About