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

Re: Revisiting smart match

Thread Previous | Thread Next
From:
Zefram
Date:
December 19, 2017 01:47
Subject:
Re: Revisiting smart match
Message ID:
20171219014707.GA3003@fysh.org
Craig A. Berry wrote:
>whereas($input) {

That's poor.  Per English meaning, the operand of "whereas" should be
a condition, not a value, so it's totally unsuitable for this role.

>        whenever ($_ eq "string") { die "A" }

"whenever" has unhelpful temporal connotations.

>        whenas ($matcher)      { die "C" }

This doesn't read naturally.

-zefram

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