DEV Community

[Comment from a deleted post]
 
jwp profile image
JWP

Nice.

The concept of what Eval does has been around for 50 years or more. E.g. the mainframe language Rexx had an Eval statement. For me, I wouldn't ever say eval is a bad idea as ultimately it's a pseudo run time compiler transforming strings into executable statements. This ability in the right hands is really powerful.

There are rare problems where use of Eval like constructs are true lifesavers.