in reply to Re: Naming convention for variables, subroutines, modules, etc.. and variable declaration
in thread Naming convention for variables, subroutines, modules, etc.. and variable declaration
I concur almost exactly.
Whilst not decrying the practice of using a temporary "naming var" for clarity completely, they can often be avoided by other good naming choices.
In your example
foo( $badgers->{lookup} ); ## or foo( $some->{lookup_badger} ); ## or dealwithBadger( $some->{lookup} );
depending upon the circumstances.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Naming convention for variables, subroutines, modules, etc.. and variable declaration
by fenLisesi (Priest) on Nov 24, 2006 at 12:28 UTC | |
|
Re^3: Naming convention for variables, subroutines, modules, etc.. and variable declaration
by jbert (Priest) on Nov 24, 2006 at 11:49 UTC |