# from Joshua ben Jore
# on Monday 02 March 2009 08:20:

>If you redesigned, replacing your hash with an array would be harder
>to typo, faster, smaller, not as nice to dump with Dumper, and harder
>for 3rd parties to extend.

Is "harder to extend" a design goal?  You also make it harder to use.  
And if everybody did it, you would have name clashes with all of those 
constants.

Using methods for typo protection doesn't get you compile-time checking, 
but you have tests, right?

--Eric
-- 
So malloc calls a timeout and starts rummaging around the free chain,
sorting things out, and merging adjacent small free blocks into larger
blocks. This takes 3 1/2 days.
--Joel Spolsky
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Reply via email to