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

Re: Revisiting smart match

Thread Previous | Thread Next
From:
Craig A. Berry
Date:
December 19, 2017 01:42
Subject:
Re: Revisiting smart match
Message ID:
CA+vYcVzeTu36d1u=cnGkb1yY96hCRdGQDzfkzsae0WeYrxEO+A@mail.gmail.com
On Mon, Dec 18, 2017 at 5:25 PM, Elizabeth Mattijsen <liz@dijkmat.nl> wrote:
>> On 18 Dec 2017, at 23:51, Craig A. Berry <craig.a.berry@gmail.com> wrote:
>> For less naturalness but more precision, replace whenever/whenas with
>> whenis/whenlike.
>
> my 1.5c worth: I think not using whenever for this functionality, would prevent a lot of confusion with Perl 6: https://docs.perl6.org/language/concurrency#index-entry-whenever

I don't see how the proposed match statement could be confused with an
interval timer, and "whenever" was in English before it was in Perl 6.
It's simply not practical to disallow any word that's ever been used
before in a programming language.  "Having," for example, means
something in SQL that has some similarities to and differences from
its proposed use in this thread, but people would have to know that a
fancy match in Perl is not a SELECT statement in SQL.

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