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

Re: fixing smartmatch (again (still))

Thread Previous | Thread Next
From:
Ricardo Signes
Date:
August 28, 2012 14:03
Subject:
Re: fixing smartmatch (again (still))
Message ID:
20120828210336.GA15519@cancer.codesimply.com
* David Golden <dagolden@cpan.org> [2012-08-28T16:59:46]
> FWIW, I would still like "when {...} {...}" as a shorter way to write "when
> (sub{...}) {...}", but think that's "nice to have" and not necessary for
> fixing smartmatch.

Note that because we got rid of left-hand-side overloads for ~~, when{}{} can
now be a non-sub block.

-- 
rjbs

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