-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove evil #27
Comments
No, please do not remove the functions. Remove the eval invocations. If you On Thu, Aug 7, 2014 at 3:29 PM, Hugues Malphettes [email protected]
|
@ghalimi of course not removing the functions: just removing the 24 |
Great! Thanks. By the way, do we have a clean way of replacing them by some On Thu, Aug 7, 2014 at 3:38 PM, Hugues Malphettes [email protected]
|
@ghalimi it depends: what would those expressions look like? |
Not exactly sure yet, but at least some basic arithmetic expressions On Thu, Aug 7, 2014 at 3:43 PM, Hugues Malphettes [email protected]
|
@ghalimi the best one I found for arithmetic is: http://silentmatt.com/javascript-expression-evaluator/ |
I think that's what we used as foundation for our own Expression Engine, On Thu, Aug 7, 2014 at 3:47 PM, Hugues Malphettes [email protected]
|
yes that is the foundation of the expression engine |
Here is another one: http://mathjs.org/ |
Here is a very small one: http://jsep.from.so/ Once built, just 600+ lines of code that looks good: The minimized version stands at 4KB. |
An evaluator using the output of jsep looks really promising I think: https://github.com/CrowdProcess/formula.js/pull/2 |
Added support for json in jsep with 60 lines of code:
or
EricSmekens/jsep#14 |
All 24 of them
The text was updated successfully, but these errors were encountered: