On Feb 5, 5:51 pm, Kees-Jochem Wehrmeijer <henc...@gmail.com> wrote:
> Well, my idea was for the type to hold a datastore query (Google App
> Engine). At the moment I'm using a map for this. To get the results
> from the query I have a function run-query that takes the map and
> returns a seq based on an Iterable. I was thinking that if I had a
> custom query type that still behaved like map (in the sense that I can
> still use assoc on it), but which returns the results of the query if
> you call seq on it.
>
> So basically the map would hold the query parameters, but as soon as
> you use it as a seq it actually gives the results of the query.
You could mimic ClojureQL and execute the query when you deref the
object.

Brian

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to