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
For debugging/testing an idea before implementing it the proper way.
For instance, you're making a toy calculator, and you want to work on the gui first, so you just use eval
to do the "back-end" work in the background. Later, you come back to the back-end, scratch eval
, and write a proper expression parser.