for p in cross(products, qty) ?limit 10 do
print(p.products.price * p.qty)
end
The thing is be functional/relational only is too mind-bending and is very nice to work with procedural construct.
BTW my plan is that the query (?) section will compile to optimal executions defined per storage engine (memory, sqlite, mysql, redis, etc) `products ? price = 10.0` is executed on the server, not on the client.
That is nice, but much better will be language that is relational itself.
I'm working on one (https://tablam.org) and you can even do stuff like:
for p in cross(products, qty) ?limit 10 do print(p.products.price * p.qty) end
The thing is be functional/relational only is too mind-bending and is very nice to work with procedural construct.
BTW my plan is that the query (?) section will compile to optimal executions defined per storage engine (memory, sqlite, mysql, redis, etc) `products ? price = 10.0` is executed on the server, not on the client.