Re:The Strategy Pattern in JavaScript
by MostAwesomeDude on Tuesday June 21, 2011 @09:42PM
(#2681264)
In Python, at least, this pattern is called the "dispatch dictionary" and relies on the ability of Python to store just about anything as dictionary values. It is considered to be Python's answer to the question, "Why is there no switch/case in Python?"
[ Parent
| on HN ]
There are no comments on this comment yet.