src_clojure{:*} is a wildcard, indicating that the query engine is able to match anything. It’s meaning also changes with the context.

Actually, I think wildcards are undesirable. The whole point of this is to make it so you can take a sparse example data structure and filter using it over more-populated data structures. The wildcards sort of defeat this purpose.

Actually, they could serve a purpose still. If I wanted some portions of the comparison to be strict, but others to be relaxed, I could do that with the wildcard keyword, but not without it.

In this instance, I can use the wildcard function to add a wildcard to the subsequent data structure but not any of the data structures contained therein. I don’t know if that’s any nicer than just doing that in data. I’m inclined to say no.

What bothers me about the wildcard is how I often I imagine myself using it. In the case where I want an entirely sparse example data structure to be matched, I’d have to put it everywhere.

Maybe the solution at that point is to have a src_clojure{wildcard} function that does a deep walk of the entire contained data structure, adding wildcards at each point. All that src_clojure{wildcard} should do, I think, would be to annotate the data structure with the appropriate wildcard data, so that you could also represent that same thing in data if you so chose.

The following example shows how this might be used to query an in-memory datastructure.