develooper Front page | perl.perl5.porters | Postings from March 2007

Re: [PATCH] Extend functionality of UNIVERSAL::DOES() so it handles additional roles, and works in subroutine form.

Thread Previous | Thread Next
From:
chromatic
Date:
March 12, 2007 00:28
Subject:
Re: [PATCH] Extend functionality of UNIVERSAL::DOES() so it handles additional roles, and works in subroutine form.
Message ID:
200703120028.36455.chromatic@wgz.org
On Sunday 11 March 2007 21:19, Dr.Ruud wrote:

> > I support the idea of making ->DOES() work on internal "types"
> > (ARRAY, REGEX, CODE, etc), but I think this idea is wrong.

> What exactly do you mean by "this idea"? Is it the wrong one that you
> support?

UNIVERSAL::DOES() is a method.  I believe that it should stay a method and 
that calling methods as functions is horribly wrong and a practice to 
discourage, not encourage.

-- c

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