I think comp is nice and short, personally. Partial is okay, and the long name helps discourage me from using it when I should be using #() instead - partial is a bit slower. And if you find yourself wanting to nest #() forms, it's not that bad to switch to partial, and it may serve as a warning sign that what you're doing should be multiple expressions anyway.
The one that bugs me is complement - such a long name for a commonly- useful function. I often wind up defining ! as an alias for complement, but maybe others will think that is poor style. I like it because ! is already well-associated with inversion from the C family of languages so there's little risk of forgetting the name, and it saves a lot more space than aliasing comp. On Nov 13, 10:33 pm, "Eric Schulte" <schulte.e...@gmail.com> wrote: > Hi, > > I find myself frequently using the `comp' and `partial' functions and > while I really enjoy being able to program in a point free style, the > length (in characters) of these command names often has the effect of > causing what should be a brief statement to span multiple lines. > > I'm about to begin starting all of my clojure namespaces with > (def o comp) ; o for cOmp, Haskell's (.) or Mathematical composition \circ > (def p partial) ; p for partial > > However, I'm worried that this could limit the readability of my code, > and given that this issue has (sort of) come up previously [1] [2], I > figured I'd ask... > > Is there any support for including these function aliases for `comp' and > `partial' (or some other shortened names) in the core? > > Best -- Eric > > Footnotes: > [1] http://groups.google.com/group/clojure/msg/f41f9866dc736077 > > [2] http://groups.google.com/group/clojure/msg/29ce4786c9cef754 -- 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