clojure structs are an optimized version of maps for a set of shared
keys. if you don't have a defined set of shared keys you just have a
map. so by all means, use a map
I think Andreas's point is that there's a discontinuity:
0 required keys: map
1 required key: struct-map
2 required keys: struct-map
...
and thus flip-flopping between 0 and n required keys means changing
lots of code.
The solution for Andreas, of course: either
* Always use map. The performance impact is small.
* Always have at least one required key in your struct-map, even if
you don't actually use it.
--
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