On 5/11/2012 1:20 PM, Jonathan M Davis wrote:
That's definitely an example of something that depends on your background.
std.algorithm.any does _exactly_ what it would do in a functional language.
How intuitive an API is depends a lot on how much the person writing the API
thinks like you.

That is amusing. I've been writing a bunch of range/algorithm code myself lately, and I find it's a struggle because it is simply not how I think about code. I think in terms of C style loops, and solutions just pop out of my fingers on the keyboard. With ranges, I have to forcibly think in a different way, it's a lot like transitioning from walking to using a snowboard.

Reply via email to