It is a code smell to use programming language constructs to evaluate strings as code, especially where other metaprogramming facilities are readily available. Side effects include, but are not limited to, damaging syntax highlighting and a variety of code inspection / debugging tools.
In general, the string_to_proc method scares me and seems like fundamentally a bad idea.
It is a code smell to use programming language constructs to evaluate strings as code, especially where other metaprogramming facilities are readily available. Side effects include, but are not limited to, damaging syntax highlighting and a variety of code inspection / debugging tools.
In general, the string_to_proc method scares me and seems like fundamentally a bad idea.