wait namespaced keywords in clojure have to be fully-qualified when you reference them clojure.spec specs are named using keywords
-
-
Replying to @kf
whyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy Am I missing something? This makes it super-tedious to actually use keywords from other namespaces.
2 replies 0 retweets 1 like -
Replying to @kf
I was wondering the same thing--"why not vars?"--but then I realized you'd want defs and specs with the same name constantly.
1 reply 0 retweets 1 like -
so clojure.spec complects purpose with identifier type: vars for functions, keywords for specs. I... kinda wish it were metadata.
1 reply 0 retweets 1 like -
Replying to @aphyr
TBH I understand why things *are* but it's hard to sell this to someone knowing that all the namespaces have to be fully-qualified.
2 replies 0 retweets 0 likes -
Replying to @kf
I feel like the next logical step is to add alias-qualified symbols like we have for vars, e.g. :f/baz -> :http://foo.bar/baz .
1 reply 0 retweets 0 likes -
Replying to @aphyr
That is what I was hoping for. How much have they debated this, I wonder? /cc
@puredanger for like the 10th time this week
2 replies 0 retweets 0 likes
that already exists - ::alias/baz -> :http://big.long.name/baz
-
-
Replying to @richhickey @aphyr
whaaaaaaat *goes back to read the docs a fourth time*
3 replies 0 retweets 3 likes -
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.