Enabling endless querying options #99
funkyfuture
started this conversation in
Ideas
Replies: 1 comment
-
snakesist is already keeping specific queries around as objects: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
atm delb faciliates querying trees with XPath and CSS selectors:
my last night's sleepin idea was to change that to a common interface based on a new abstract class that represents any query expression and implements their evaluation. the previous would then read:
that can easily be transitioned with deprecations.
the new interfaces would look somethng like this, existing implementations are referenced by an fqn:
okay, there's more typing hyping bloat, what may be beneficial? generally speaking, applications and libraries can use whatever they come up with directly on node and document instances (
node.query(my_dsl(…))
instead ofmy_dsl(node, …)
). hypothetical ideas for more concrete uses:Query
objects are re-used they don't have to parse their input again (atm they could miss the cache arounddelb.xml.parse
)xpath
implementation if they believe in itthat isn't entirely convincing yet.
Beta Was this translation helpful? Give feedback.
All reactions