"when (if ever) is eval not evil?" Code Answer

3

Eric Lippert sums eval up over three blog posts. It's a very interesting read.

As far as I'm aware, the following are some of the only reasons eval is used.

For example, when you are building up complex mathematical expressions based on user input, or when you are serializing object state to a string so that it can be stored or transmitted, and reconstituted later.

By d8aninja on December 13 2022

Answers related to “when (if ever) is eval not evil?”

Only authorized users can answer the search term. Please sign in first, or register a free account.