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

Re: ./method

Thread Previous | Thread Next
From:
Larry Wall
Date:
May 15, 2005 07:32
Subject:
Re: ./method
Message ID:
20050515143204.GA26184@wall.org
On Sun, May 15, 2005 at 01:44:44PM +0200, Juerd wrote:
: A few days ago, when typing ./pugs,... You can guess the rest :)
: 
: I suggest
: 
:     ./method
: 
: to mean $?SELF.method, and
: 
:     ../method
: 
: to mean $?SELF.SUPER::method, or however that's normally written.

That's almost terminally cute, but I like it.  Unless someone can
think of a major objection (such as that it makes it too easy to use
SUPER semantics rather than NEXT semantics), let's go with it.

From a programmer point of view the mnemonic is pragmatically good,
because use of ./ in shell is mostly only for commands, so people
are used to seeing it as part of an invocation process, not just a
file location process.

Larry

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