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

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

Thread Previous | Thread Next
Graham Barr
July 15, 2005 16:12
Re: WTF? - Re: method calls on $self
Message ID:
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


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About