H.Merijn Brand wrote:
Hi
{ fields => { Name = "...", Address => "...", ... },
but I think that would be a huge impact on memory use and also be
quite easy to create yourself in a map {} construct;
Rejecting this option based on memory usage is a specious argument.
Every method call on every object in every program has the potential to
use memory. So what? The person who makes any such call has to accept
the consequences of that call.
The other argument in favour of this option is: Why should every
programmer who needs it have to reinvent such code, potentially
thousands of times, when you could do it once for all of us in the
module. And it's not as though the method has to be called - as always,
no call, no memory usage.
--
Ron Savage
[EMAIL PROTECTED]
http://savage.net.au/