Why foreach(c; someString) must yield dchar
Kagamin
spam at here.lot
Wed Aug 18 23:09:05 PDT 2010
dsimcha Wrote:
> If D is at all serious about generic programming, we simply can't require this
> to be dealt with **everywhere** as a special case.
I suspect, ranges were designed for FP, so use map instead of foreach. Or fold. Or another 3-letter abbreviation. This will give you a possibility to parallelize your code later, foreach is executed sequentially by design.
More information about the Digitalmars-d
mailing list