On Tue, Jul 6, 2010 at 3:37 PM, Scott Jaderholm <jaderh...@gmail.com> wrote:

>
> On Tue, Jul 6, 2010 at 3:24 PM, Greg <g...@kinostudios.com> wrote:
>
>> > This would be most likely java interop, ie. ->.
>> > There the main arguments are 99% of the times the first or the last
>> ones. So -> or ->> will work
>>
>> OK, so what happens when one of the functions takes it in the front, and
>> the other in the back?
>>
>> Or what happens when you're using a piece of code that doesn't follow
>> either convention? Are you saying such code doesn't exist?
>>
>> In both those cases, -> and ->> become useless.
>>
>>
> You can use -> and ->> together to handle changing argument orders.
>
> (-> "foo"
>     (str "1")
>     (->> (conj #{})))
>
> Scott
>
> (I would like --> or let-> in contrib though)
>

Sorry, this was just in response to "what happens when one of the functions
takes it in the front, and the other in the back?" not "what happens when
you're using a piece of code that doesn't follow either convention?", which
would have to use #().

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