> Why do you want to override seq? The only reason that I can think of
> is that you are implementing some sort of custom data type. If that is
> the case, you should be using deftype instead; defrecord is a protocol-
> aware drop in replacement for normal maps.

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.

Kees

-- 
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