Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
throwuwu
45 days ago
|
parent
|
context
|
favorite
| on:
Deep Learning in JavaScript
If you do want to add evaluation of mathematical expressions you should check out Math.js since they provide a parser among other utilities. Please make it optional though, it would be a nightmare to debug if everything was written in strings.
https://mathjs.org/docs/expressions/parsing.html
eduardoleao052
45 days ago
[–]
Thanks for the tip, will look into it! Yes, I think it would always be better to leave a "vanilla" option available.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://mathjs.org/docs/expressions/parsing.html