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

Re: Revisiting smart match

Thread Previous | Thread Next
Eirik Berg Hanssen
November 28, 2017 00:45
Re: Revisiting smart match
Message ID:
On Mon, Nov 27, 2017 at 11:21 PM, Father Chrysostomos <>

> Another suggestion, which may not be any good, is to use 'when'
> for truth:
>     when($quality eq 'so-so') { ... }
> and 'beit' (be it) for smartmatch:
>     beit(numerical) { ... }
> In English, we already combine those two words in 'albeit'.

  FWIW, I like it!

  Unlike anything I could come up with, this is unambiguous as to which is
which: Only when the topic ("it") is explicit in the keyword, is the topic
($_) implicit in the following expression.

  The only thing I can hold against it is, well, might the subjunctive be
too much for the non-linguist programmer?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About