Calcublog
-
Dot Notation
There’s a new feature in Calculist that allows you to reference values at different points of the hierarchy in a simple and intuitive way.
parts hubs [:] 39 spokes [:] 14 rims [:] 50 tires [:] 20 handlebars [:] 48 frame [:] 380 fork [:] 40 seat [:] 33 wheels [=] parts.hubs + parts.rims + parts.spokes + parts.tires
Read more on the GitHub wiki.
-
evalculist
Today I started a new open source JavaScript library, evalculist. It’s a safer form of
eval
for executing arbitrary user input JavaScript expressions, and it’s a foundational component of Calculist. Check it out and use it in your own projects (license MIT). There’s plenty of room for improvement. Feel free to fork the repo and open up a pull request!
subscribe via RSS