Front page | perl.perl6.language |
Postings from April 2002
Re: Unary dot
Thread Previous
|
Thread Next
From:
Dave Mitchell
Date:
April 12, 2002 15:57
Subject:
Re: Unary dot
Message ID:
20020412235525.A17821@fdgroup.com
On Wed, Apr 10, 2002 at 05:47:01PM -0500, Allison Randal wrote:
> I'm in favor of the standardized variable name. It is a restriction, but
> not an onerous one. I've never used anything but $self, and I'm sure it
> would be easy to adapt to whatever else was chosen. Are there any
> statistics availble on current usage of $self vs. $this vs. whatever? It
> might be easiest to go with what the majority find most comfortable.
The top 20 'my $var' declarations in .pm files in the bleedperl distribution:
(I was in need of some displacement activity....)
1076 $self
181 $x
126 $file
110 $class
109 $name
98 $i
92 $line
82 $r
80 $s
75 $dir
74 $a
71 $fh
70 $key
69 $path
68 $p
68 $y
66 $c
66 $n
63 $text
60 $type
and in 48th place:
22 $this
Dave.
--
"Do not dabble in paradox, Edward, it puts you in danger of fortuitous
wit." Lady Croom - Arcadia
Thread Previous
|
Thread Next