Status of multidimensional slicing

H. S. Teoh hsteoh at quickfur.ath.cx
Fri Mar 14 07:34:49 PDT 2014


On Fri, Mar 14, 2014 at 12:29:34PM +0000, bearophile wrote:
> Mason McGill:
> 
> >My concern is that this design may be ignoring some of the lessons
> >the SciPy community has learned over the past 10+ years.
> 
> Thank you for your help. An injection of experience is quite
> important here. Julia is far newer than D, and yet it has already a
> better design and more refined implementation in several things
> related to numerical computing.
> 
> 
> >// So why shouldn't this work?
> >auto range = 0..10;
> >foreach (i; range) doScience(i);
> 
> People have suggested this lot of time ago, again and again. So I
> ask that question for Walter.
[...]

Replace the first line with:

	auto range = iota(0, 10);

and it will work. It's not *that* hard to learn, is it?


T

-- 
Klein bottle for rent ... inquire within. -- Stephen Mulraney


More information about the Digitalmars-d mailing list