How To: Passing curried functions around

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Sep 6 20:54:59 PDT 2015


The name validator_t is not idiomatic in D. Something like 
ValidatorFun should be preferred. Same for intReader_t; 
ReadIntFun is probably preferred, or even IntReader (but that 
would imply that it's a struct/class in my mind).

As for the actual use of partial, it's perfectly fine and 
idiomatic to use.


More information about the Digitalmars-d-learn mailing list