go ahead... be a heretic | |
PerlMonks |
Re^5: 5x6-bit values into/out of a 32-bit wordby grinder (Bishop) |
on Mar 18, 2007 at 15:04 UTC ( [id://605361]=note: print w/replies, xml ) | Need Help?? |
Don't take things so literally. Of course we know our 6 times tables. And the computer is already switched on. What if your requirements change, and it's 7 4-bit values, or 10 3-bit values? In my code, you only have to change one or two initialisers. In Thelonius's code you have to rework nearly all of it. Even if the particular edits are trivial, there are far too many. It's a variant on the Don't Repeat Yourself principle. I am surprised you didn't grasp this. • another intruder with the mooring in the heart of the Perl
In Section
Seekers of Perl Wisdom
|
|