From: Glenn Parker Date: 2005-03-30T08:10:00+09:00 Subject: Re: attr :? Phil Tomson wrote: > Two main issues come to mind: > > 1) security. What is someone malicious code that gets eval'ed? > "system(\"rm -f *\")" > > 2) debugging. It can be difficult to debug code that depends on eval. > Errors get reported, but you've got to match line numbers of the string > passed in to the eval function and this can be difficult. 3) editing. If your editor understands Ruby syntax, it will highlight and indent the code in a block passed to define_method. But editing code encased in quoted strings makes your editor dumb. -- Glenn Parker | glenn.parker-AT-comcast.net |