Comcast / Comcast/rulio

"bind" query

Open
#73 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Go
Stars
337
Forks
58
PR merge metrics
No merged PRs in 30d

Description

Hey @jsccast I hope all is well. I've got another thought to run past you.

I don't want to bloat rulio unnecessarily with a huge feature set, but I am on a minor mission to deemphasize the use of javascript blocks in rules. The next suggestion I have along this line of thought is to introduce a new query type called `bind`. This would be a query that simply takes a JSON map and produces bindings from it, while replacing `?existing_binding` with the existing binding value.

Very often we have the need to "transform" a data structure, or bind things conditionally. Today, we jump into JS to do that. With this `bind` query, hopefully we can avoid the JS and make things more readable.

What do you think?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.