Use case for std.bind
Don
nospam at nospam.com
Thu Feb 26 00:09:11 PST 2009
Andrei Alexandrescu wrote:
> Jason House wrote:
>> The first follow-up to your reply captured the kind of messiness bind
>> can bring in C++. So far, all your examples are trivial (lack
>> argument reordering, function composition, etc...). It's true that
>> your examples look clean, but the devil will be in the details.
>
> I see. The only problem is that very few people seem to use std.bind;
> there are few interesting examples of arbitrary partial argument binding
> that need formalization. The one good example I know of is those float
> vector permutations, but nobody in their right mind would use a delegate
> for that!
>
> That all makes it even more appealing to stick with a five-liner in
> std.functional that gets currying into the bag (which is a useful and
> low-hanging fruit) and call std.bind history. Makes sense?
>
>
> Andrei
Yes. I think that the smaller Phobos can be, the better. Make sure that
everything in it is actually useful, and ditch the rest.
More information about the Digitalmars-d
mailing list