Using map instead of iteration
Jonathan M Davis
jmdavisProg at gmx.com
Sun Mar 6 16:17:32 PST 2011
On Sunday 06 March 2011 05:57:12 Simen kjaeraas wrote:
> You should use std.range.iota(0,numberOfThreads) instead of
> 0..numberOfThreads. Having a..b return a general interval range
> has been proposed numerous times, but nothing has been implemented as
> of yet.
I'm sure that part of the problem is the fact that a .. b is also used in
slicing, where it does not mean the same thing - that and iota works just fine,
and increasingly, Andrei and Walter seem to prefer having stuff in the library
rather than the language itself when there's no significant gain to be had by
putting it in the language.
- Jonathan M Davis
More information about the Digitalmars-d
mailing list