D dropped in favour of C# for PSP emulator
Jacob Carlborg
doob at me.com
Mon May 14 00:45:18 PDT 2012
On 2012-05-11 22:20, 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. It's definitely something to strive for, but the best that you
> can generally do is hit the majority of your target audience. You can never
> hit everyone.
>
> - Jonathan M Davis
This one exists in Ruby as well. But in Ruby the block/lambda is
optional. If it's not passed it will return a bool indicating if the
collection is empty or not, just as Mehrdad expected.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list