in reply to Re^3: Writing a simple RSS feed 'grabber' with XML::Parser.
in thread Writing a simple RSS feed 'grabber' with XML::Parser.

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
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re^4: Writing a simple RSS feed 'grabber' with XML::Parser.