On Nov 30, 2012, at 1:15 PM, Alex Baranosky wrote:

> I've got a utility function I've been using called `conditionally-transform` 
> which is a non-macro version of `test->`.  I think both cond-> and if-> have 
> a similar problem in that, if you already understand if/cond/-> then it gives 
> you little insight into how the new threading macro works. 
> 
> Both these names focus on the conditional nature of the macro.  Perhaps a 
> name based on the transformative nature of the macro: trans-> or transform-> 
> ?  These convey the idea of threading through various transformations.
> 

All threading macros are transforms. cond-> has test forms like cond.

> For when->, how about non-nil-> ?  I'd feel better about some-> if it came, 
> as you said, with other new functions that use the syllable 'some', thus 
> expanding the Clojure lexicon.  As it stands I don't feel like some-> has a 
> particularly intuitive meaning.


Intuitive meaning is not always available, given everyone has different 
intuitions :)

-- 
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

Reply via email to