Re:Functional Thinking after OO
by silentbicycle on Tuesday March 15, 2011 @04:23PM
(#2329204)
Yeah, if you can interpret a data structure at runtime, you don't need to write out the corresponding code at all.
You could have all the redis connection instances share the same command dict, or make it a variable in the package.
I know that Lisp ranks above Python on the metaprogramming scale, but simply adding easy object introspection can allow for cool factoring constructs that a Java (or similar) programmer wouldn't even consider. It's possible to make copy-pasta in any language.