Well, it’s worth noting that clojure.core/name does account for strings <https://github.com/clojure/clojure/blob/clojure-1.9.0-alpha5/src/clj/clojure/core.clj#L1577-L1583> :
(defn name "Returns the name String of a string, symbol or keyword." {:tag String :added "1.0" :static true} [x] (if (string? x) x (. ^clojure.lang.Named x (getName)))) So one *could* argue that named? should recognize strings in addition to keywords and symbols. No comment on whether such a predicate is a good idea though. On Wednesday, June 8, 2016 at 5:40:06 PM UTC-4, Sean Corfield wrote: > > Given the only two things in Clojure that implement Named are keyword and > symbol – and we have ident? – what additional value would named? have? > > > > (but, yes, that was my first thought when I saw the list of new predicates) > > > > Sean Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > > > On 6/8/16, 1:13 PM, "Devin Walters (devn)" <clo...@googlegroups.com > <javascript:> on behalf of dev...@gmail.com <javascript:>> wrote: > > > > Any chance of `named?` making the cut in 1.9? I see it's used in the > implementation of clojure.spec. > > On Tuesday, June 7, 2016 at 12:38:34 PM UTC-5, Alex Miller wrote: > > Clojure 1.9.0-alpha5 is now available. > > > > Try it via > > > > - Download: > https://repo1.maven.org/maven2/org/clojure/clojure/1.9.0-alpha5 > <https://repo1.maven.org/maven2/org/clojure/clojure/1.9.0-alpha5> > > - Leiningen: [org.clojure/clojure "1.9.0-alpha5"] > > > > 1.9.0-alpha4 includes the following changes since 1.9.0-alpha4: > > > > Fixes: > > - doc was printing "Spec" when none existed > > - fix ? explain > > > > New predicates in core (all also now have built-in generator support in > spec): > > - seqable? > > - boolean? > > - long?, pos-long?, neg-long?, nat-long? > > - double?, bigdec? > > - ident?, simple-ident?, qualified-ident? > > - simple-symbol?, qualified-symbol? > > - simple-keyword?, qualified-keyword? > > - bytes? (for byte[]) > > - indexed? > > - inst? (and new inst-ms) > > - uuid? > > - uri? > > > > New in spec: > > - unform - given a spec and a conformed value, returns the unconformed > value > > - New preds: long-in-range?, inst-in-range? > > - New specs (with gen support): long-in, inst-in, double-in > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clo...@googlegroups.com <javascript:> > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+u...@googlegroups.com <javascript:> > 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+u...@googlegroups.com <javascript:>. > For more options, visit https://groups.google.com/d/optout. > > -- 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.