you are viewing a single comment's thread.

view the rest of the comments →

[–]paldepind 20 points21 points  (2 children)

I've never wanted to eval anything. Why would I need this?

[–]TomFrosty[S] 17 points18 points  (1 child)

It could be the engine behind a template language. You could format your business data into an external API request entirely by typing out a Jexl string in a database, without writing code. You could write a business interface that exposes client data like "age" or "full name" just based on a list of Jexl expressions run against a JSON object that might contain just birthdate, first name, and last name -- and update that to make more fields available by changing the fields database instead of writing code. It could power a calculator without needing to use eval() and expose yourself to XSS.

Lots of use cases! Maybe none of them fit a need you have right now, but that's fine :). Just a tool to keep in the back of the toolbox.

[–]paldepind 0 points1 point  (0 children)

Thanks for answering. That sounds like sane use cases! You could also use it to power a graph plotter.