Re:Eval() Isn't Quite Pure Evil
by pvg on Tuesday September 08, 2009 @10:17PM
(#812411)
It seems the purpose was to show three module definitions and then and then talk about them - in which case both the eval and meta versions are complete gibberish since they have absolutely nothing to do with his expository goals. Both basically amount to 'let me show you some cute Ruby code that would generate the code that I could have just shown you on three slides. Instead of showing you three slides, though, I'd like you to become a Ruby interpreter for a few moments'. This seems almost purposefully obtuse.
As to eval itself, it's obviously not 'evil'. But nontrivial use can make code unreadable:
As to eval itself, it's obviously not 'evil'. But nontrivial use can make code unreadable:
this can be read as This neatly removes any ability to effectively reason about the code.