Re: Qualified keys, Clojure records, Spec

2016-06-14 Thread Mike Rodriguez
Thanks for the response and giving me some understanding in the thought process behind this! I'm happy that Spec is still offering support for unqualifed keys to fit use-cases like this in records. I do think it would be cool to see something come out of the "implicit" namespace already associ

Re: Qualified keys, Clojure records, Spec

2016-06-11 Thread Alex Miller
This is a good question and one we've discussed a bit. You can use the existing s/keys with :req-un and :opt-un to spec the (unqualified) keys of a record - there's an example of this in the guide at http://clojure.org/guides/spec. So that's the short-term current answer. However, there are pot

Qualified keys, Clojure records, Spec

2016-06-11 Thread Mike Rodriguez
I know that Spec and the changes coming to Clojure 1.9 I see that namespace qualified keys have gained some focus. I understand the motivations for this and support it.  The one barrier that is coming up for me is in the use of Clojure records (and perhaps deftype types too). We use records fai