Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Autovivification trick

by ikegami (Pope)
on Aug 13, 2006 at 22:52 UTC ( #567124=note: print w/ replies, xml ) Need Help??

in reply to Autovivification trick

I'm not sure the diminished readabilty brought on by a second level of indirection is worth avoiding the use of ||= {}.

However, its use is localized, so one can understand the function of the code (through comments) without having to understand the trick.

Comment on Re: Autovivification trick
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://567124]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2016-02-08 22:08 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (286 votes), past polls