develooper Front page | perl.perl6.language.objects | Postings from August 2000

Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )

From:
Tom Christiansen
Date:
August 28, 2000 15:10
Subject:
Re: RFC 152 (v1) Replace $self in @_ with self() builtin (not $ME )
Message ID:
16097.967500606@chthon
>I think they would *improve* readability. Certainly over $_[0], and
>even over:

>	sub method {
>		my ($self, @args) = @_;
>		...
>	}

>I'm *forever* writing that and just it clutters up the code.

What about

    sub somename : method (@args) {
	...
    }

And leaving your$self some other way at the object?

--tom



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About