develooper Front page | perl.perl5.porters | Postings from April 2010

Re: What is Yada yada used for?

Thread Previous | Thread Next
From:
Ævar Arnfjörð Bjarmason
Date:
April 14, 2010 01:29
Subject:
Re: What is Yada yada used for?
Message ID:
o2r51dd1af81004140121o145d0797s174d932e0f8ee820@mail.gmail.com
On Wed, Apr 14, 2010 at 08:05, Gabor Szabo <szabgab@gmail.com> wrote:
> and then the question.
> I read the docs of the Yada yada operator but from that it is not clear
> to me when should I use it? What can I achieve with it?
>
> Could someone please explain?

Where you'd previously write:

    sub foo { croak "Subclasses implement me" }

You'd now write:

    sub foo { ... }

Of course in Moose land we'll continue to write roles with:

    requires 'foo';

:)

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