On Wednesday, February 21, 2018 at 7:34:00 PM UTC-6, Didier wrote: > > I would actually love it if Spec was extended to have the concept of types. >
Map specs are about attribute aggregation, not about types. https://clojure.org/about/spec#_map_specs_should_be_of_keysets_only > Something where every spec could be tied to a Type, and types could be > constructed to have Hierarchies. > You can effectively do this already. When you have s/keys maps which are sets of attributes, you can simply combine sets (base and extensions) using s/merge. Or when needing more polymorphism, s/multi-spec. -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.