in reply to Avoiding reference of sub optimization
Is there any reason for this? Without a closure those two subroutines will be exactly the same and do and return the same things in all circumstances. So why should they be different?
UPDATE to your UPDATE: An array is different since you can change values in it. But you can't edit a subroutine "in flight"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Avoiding reference of sub optimization
by LanX (Saint) on Mar 21, 2011 at 14:36 UTC | |
by JavaFan (Canon) on Mar 21, 2011 at 14:51 UTC | |
by LanX (Saint) on Mar 21, 2011 at 15:02 UTC | |
by tye (Sage) on Mar 21, 2011 at 14:47 UTC | |
by LanX (Saint) on Mar 21, 2011 at 14:52 UTC | |
by tye (Sage) on Mar 21, 2011 at 15:16 UTC |