develooper Front page | perl.perl5.porters | Postings from June 2012

Re: Smartmatch two cents (was... List::Util... when...)

Thread Previous
June 30, 2012 01:09
Re: Smartmatch two cents (was... List::Util... when...)
Message ID:
On 29 juin, 23:05, (Aaron Priven) wrote:
> On Fri, Jun 29, 2012 at 12:15 PM, Klaus <> wrote:
> > On 29 juin, 12:54, (Ed Avis) wrote:
> > > I would gladly remove smartmatch from my code if Perl provided
> > > an 'in' keyword
> > > to replace it, which is the only thing I use smartmatch for anyway.

> > I agree with your statement, but the problem is that there is always
> > something to be added,


> I do think in_eq and in_== would be useful, and with when_true, when_eq,
> and when_== would cover nearly all the actual uses of smartmatch in
> practice.

That sounds very reasonable to me. I suggest that we use this as a
proposal to the perl5.porters community to develop a new smartmatch /

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