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

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

Thread Previous | Thread Next
Autrijus Tang
July 14, 2005 08:47
Re: WTF? - Re: method calls on $self
Message ID:
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.


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