#4 is the biggest pain point for me, having symbol take a Namespace
and a Symbol would get rid of a lot of calls that look like (symbol
(name (ns-name *ns*)) (name sym)) and replace them with (symbol *ns*
sym)
>
> I always forget that symbol allows a string or a symbol for first argument,
> but that when you have two arguments, they must both be strings. It's
> another "d'oh!" thing for me that I find myself correcting a lot. I'd also
> like to be able to construct a symbol with a namespace object directly, not
> just the string that represents the namespace's name.
>
> Anyway, what do you think? If there are any smart ideas here, I'd be happy
> to create a jira ticket and attach a patch with tests.
>
> Joe
>
> --
> 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
> 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
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
--
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?
2) I think this has caused me problems once or twice
3) It would be nice to have Named and Namespaced, but I don't think
it's feasible to make the change now - there's too much code assuming
you can get the namespace of a Named thing. Maybe it would be okay if
we left Named alone, added Namespaced, and then had (namespace foo)
first check for Namespaced and then for Named.
4) Yes please this drives me crazy. Every time I do the following I
cringe:
(letfn [(symbol [& args] (apply clojure.core/symbol (map name args)))]
(...use a sane-seeming symbol function...))
1) I agree this seems silly but I don't think it's ever bitten me
macros mostly.
most recently a macro that registers a cache with a name to make it
available for flushing via a command line control interface, and a
macro replacement for syntax-quote.