On Sun, Oct 23, 2011 at 21:25, Meikel Brandmeyer <[email protected]> wrote: > Hi, > > Am 22.10.2011 um 20:49 schrieb Sean Corfield: > >> I'm >> starting to think there's a nice, idiomatic solution lurking somewhere >> that wouldn't require an extra function... > > The idiomatic solution is #(f % a1 a2 a3). I'm failing to see the issue with > “nice” and “expressive”, but that is most likely just me.
I find myself reaching for partial when I could be using #(), I even often find myself rejiggering the argument order of my own functions to make them more useful in combination with partial. But, honestly, I'm not quite sure why I have this preference. The #(...) is arguably more readable since we're shown explicitly where the argument goes, and yet I still find myself reaching for partial and comp when I can make them fit. I mean, I like the fact that partial and comp don't cause yet-another-tiny-class to be generated every time they appear in code. But that doesn't seem like reason enough. Am I just being too "clever"? // Ben > Sincerely > Meikel > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to [email protected] > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
