go ahead... be a heretic | |
PerlMonks |
•Re^4: Writing a simple RSS feed 'grabber' with XML::Parser.by merlyn (Sage) |
on Oct 20, 2004 at 11:04 UTC ( [id://400817]=note: print w/replies, xml ) | Need Help?? |
Please don't trot this out as an "optimization". What I'm saying is that this "cute syntax" is in fact gaining nothing, and only loses. So, if the only thing it's optimized for is "cuteness", it doesn't belong in the standard idiom list.
So, at worst, I'm saving typing. Typically, I'm also saving execution speed. Why would you have a complaint about that? And what about the "programmer time" to figure out what the "cute" construct does? There's a real expense there. The literal slice is well documented. The cute block-arrow-block form shows up more like an obfuscation than a clarification, costing clarity, but for what reward? None, ever. Why unnecessarily obfuscate your code? -- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|