Keep It Simple, Stupid | |
PerlMonks |
Re^4: How will you use state declared variables in Perl6?by BrowserUk (Patriarch) |
on Jul 08, 2005 at 22:38 UTC ( [id://473594]=note: print w/replies, xml ) | Need Help?? |
Yes. That is a good example of the possible surprise factor. Now inherit Class Qux from Class Bar, and every time you call ->foo() from any instance of either class, state $bar will be incremented. This has the potential for an even bigger surprise factor I think. Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.
In Section
Meditations
|
|