|
|
| Welcome to the Monastery | |
| PerlMonks |
Re^3: aliasing arrays using typeglob under strictby AnomalousMonk (Prior) |
| on Feb 08, 2013 at 16:54 UTC ( #1017861=note: print w/ replies, xml ) | Need Help?? |
|
Try re-writing this without aliasing and it will either be much less clear syntactically; or vastly less efficient... BrowserUk operates in an environment in which it is vital to squeeze every last, living computron from any processor, algorithm or function with which he deals, so I am not inclined to dispute his assertion that indirect access is "vastly less efficient". I would argue with his assertion about clarity. This, of course, is very much a matter of personal taste; I'm not aware of any widely accepted metric for benchmarking 'clarity' – or even for defining its meaning! I would say that the (untested) way I have re-written mmMxM() below is, to my taste, at least as clear as the original. (Again, all issues of performance are entirely neglected. And I don't understand what this thing is doing in the first place... some kind of matrix multiply?)
I have, believe me, the utmost respect for BrowserUk, a most subtle and puissant (that's puissant, not pissant!) monk whose programming boots I am not fit to lick clean, but I felt compelled to offer my USD0.02 on the subject of clarity.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||