Instead of mimicing method dispatch, shouldn't this be handled by a factory that returns an appropriate action object?
Okay, the author writes:
> Skeptics may say, that problem has been solved in the Object Oriented world by [...] Wow, that is a lot of work, and think about the number of classes and lines of code you will end up with!
First, you don't have classes in a prototype-based language. Secondly, do it right or don't do it at all.
Okay, the author writes:
> Skeptics may say, that problem has been solved in the Object Oriented world by [...] Wow, that is a lot of work, and think about the number of classes and lines of code you will end up with!
First, you don't have classes in a prototype-based language. Secondly, do it right or don't do it at all.