4 ms·
Very cool. The syntax is a bit verbose though. What about expressing it as a tree based data structure?
by bcheung 10y ago
Very cool. The syntax is a bit verbose though.
What about expressing it as a tree based data structure?
- ralusek 10y agoI mentioned in another comment, but there are many json structures meant for representing logical operations currently in use by ORMs (see mongoose, sequelize, loopback, etc). +1 to seeing a standardized object structure for logical operations
- whateveracct 10y agoPrefix notation already makes it a tree. Why would an explicit data structure tree instead of the AST make it better? Outside of being able to manipulate logic program structure at runtime.
- ralusek 10y agoNot only is being able to manipulate logic program structure at runtime super cool, but it would be great to be able to pass around logic as data more easily.
- wetmore 10y agoIt wouldn't be too hard to write a function to turn a tree-based structure of your design into a tree of function calls using the existing API.