Re: Auto My?

2004-12-19 Thread chromatic
On Sun, 2004-12-19 at 20:25 -0600, Rod Adams wrote: > One of the other reasons in favor of the idea was aesthetic. > > # stuff which declares $x, $z, and $q > > $x = 4; > my $y = 7; > $z = 12; > my $r = 4543; > $q = 121; > > compared to: > > # stuff which declares $x, $z, and $q > > $x = 4; >

Re: Auto My?

2004-12-19 Thread Luke Palmer
James Mastros writes: > Juerd wrote: > >Just typing "my " before the first use of a variable isn't hard, and it > >makes things much clearer for both the programmer and the machine. > Does this imply that it's now possible to type C, and > declare @foo? In the current perl, this doesn't work --

Re: Auto My?

2004-12-19 Thread Rod Adams
James Mastros wrote: Juerd wrote: Just typing "my " before the first use of a variable isn't hard, and it makes things much clearer for both the programmer and the machine. Does this imply that it's now possible to type C, and declare @foo? In the current perl, this doesn't work -- it's a synta

Re: Auto My?

2004-12-19 Thread James Mastros
Juerd wrote: Just typing "my " before the first use of a variable isn't hard, and it makes things much clearer for both the programmer and the machine. Does this imply that it's now possible to type C, and declare @foo? In the current perl, this doesn't work -- it's a syntax error. It'd certai