develooper Front page | perl.perl5.porters | Postings from February 2009

Re: method names clash by importing: next step

Thread Previous | Thread Next
From:
Dmitry Karasik
Date:
February 25, 2009 03:07
Subject:
Re: method names clash by importing: next step
Message ID:
841vtmn5a8.fsf@tetsuo.karasik.eu.org
	Hi Zefram!

On 25 фев 09 at 12:00, "Zefram" (Zefram ) wrote:

 Zefram> Dmitry Karasik wrote:
 >> I think that in future, the syntax for declaring a class in a
 >> non-import mode would be either
 >> 
 >> use base qw(:noimport ParentClass);

 Zefram> I think that's a very bad idea.  The "no-import" feature, for
 Zefram> which "no-import" is a misnomer anyway, is logically independent
 Zefram> of the class inheriting from another class.  It is a feature of
 Zefram> the present class's own definition, and should be indicated by a
 Zefram> separate pragma.  Perhaps

 Zefram> 	use methods;

Perhaps "use methods" , I wouldn't mind. As I said before, I'm mostly
concerned with the underlying machinery, and the actual UI, well, I only
care for it to be practical enough to change affected code fast, and
make it a viable standard for future coding.

Zefram, you're very welcome to put forward propositions about UI
if you find something even better than "use methods". For me
"use methods" is good enough, but possibly it isn't for the others.

-- 
Sincerely,
	Dmitry Karasik


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