Is there ever a good reason to use eval()?
eval
Solution
Yes - when there is no other way to accomplish the given task with a reasonable level of clarity and within a reasonable number of lines of code.
This eliminates 99% of cases where `eval` is used, across the board in all languages and contexts.
Problem
It seems to me that `eval()` is treated with the same disdain that goto is. And by `eval`, I mean a function for executing a string as code, as seen in PHP, Python, JavaScript, etc. Is there ever a situation where using `eval()` is justified (except perl)? And if not, why do so many languages implement it?