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

Re: ./method

Thread Previous | Thread Next
Larry Wall
May 15, 2005 07:32
Re: ./method
Message ID:
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.


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