develooper Front page | perl.perl6.language | Postings from July 2005

Re: WTF? - Re: method calls on $self

Thread Previous | Thread Next
From:
Graham Barr
Date:
July 15, 2005 16:12
Subject:
Re: WTF? - Re: method calls on $self
Message ID:
31086.192.91.75.30.1121459146.squirrel@m1.goingon.net
On Thu, July 14, 2005 10:47 am, Autrijus Tang said:
> If this were a straw poll, I'd say...
>
> 1. Meaning of $_
>
>     .method should mean $_.method always.  Making it into a runtime
>     error is extremely awkward; a compile-time error with detailed
>     explanataion is acceptable but suboptimal.
>
> 2. Topicalization of $?SELF
>
>     Neutral on this -- I can argue bothways. in my limited experience
>     of writing p6 code, it is convenient but somewhat confusing
>     to topicalize the invocant.
>
> 3. Shorthand of $?SELF.method
>
>     I find ./method to be very useful in practice, and my brain
>     gets use to it rather quickly.  The association to pattern
>     matching and division gradually fades away, at which time
>     its novelty cease to be a problem.

I have been watching perl6-language from afar and not really
contributing. But I have to say that in this case I do agree
with Autrijus

Graham.



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