Darren New wrote:
> You know, it's not all that hard to accidentally carry over incorrect
> state in a language without mutable state, too. :-)
Heh. Do you have *any idea* how long it took me to finish debugging this
JavaScript snippet?
function Bindings_Lookup(key)
{
if (this.Key == key) return this.Value;
this.Next.Lookup(key);
}
It took an absurd amount of time to figure this out - especially given
the strange way Firefox responded to it...
Sure, they'll never make a programming language where mistakes are
impossible. But mutable state just offers *so many* ways to shoot
yourself in the foot. :-/
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|