Re:Eval() Isn't Quite Pure Evil
by jrockway on Tuesday September 08, 2009 @09:51PM
(#812375)
Well, conference slides and large-scale applications are two different things. The advantage of the MOP manipulation is that it's composable. If you want to add another function to the module, you just call a method. If you want to make the process configurable, you take a callback as an argument and call it as you are building the module. It's just programming.
eval, on the other hand, is limited to whatever string the programmer types in. This may be shorter for a conference slide, but probably more painful in Real Software.
eval, on the other hand, is limited to whatever string the programmer types in. This may be shorter for a conference slide, but probably more painful in Real Software.