On Tue, 6 Mar 2007, Zefram wrote:

Dave Rolsky wrote:
I'd prefer multiple methods to a third parameter. Different names provides
clarity. Who would know what a number means without looking in the docs?

It's not meant to be used without reading the doc at least once.
Once read, of course, the $which values follow a logical plan and so
are memorable.

I'm thinking of the person who reads the code that someone wrote which uses the "magic argument". They have no clue what it means, until they read the docs. Of course, the person who writes the code might be the same person who reads it, just six months later ;)

Constants and magic values suck, names rule, d00d ;)


-dave

/*===================================================
VegGuide.Org                        www.BookIRead.com
Your guide to all that's veg.       My book blog
===================================================*/

Reply via email to