[Submission] D Slices

Jesse Phillips jessekphillips+D at gmail.com
Tue May 31 14:27:40 PDT 2011


eles Wrote:

> > Quite simply, there aren't any. But frankly your claims for having
> a closed range also aren't advantages. It is all style and
> familiarity (no different than the python whitespace).
> 
> Good point and thanks. However, D is not trying to become Python and,
> more, it does not try to conquer the world of interpreted languages.
> 
> And there is a *big* world outside Python world.
> 
> There are no advantages of one vs. other side, let's accept that
> (although I have some doubts). But, let's keep it straight.
> 
> At least is a better score than some hours ago.

This has nothing to do with Python. My claim is that you, and others will say it is inconsistent and unintuitive, while myself and others will claim that their is nothing in needs to be consistent with, and it is in fact intuitive.

Consistency can be argued, but then what is it supposed to be consistent with? Walters goals? With other languages? With iota or uniform (random number generator)?

I can't tell you what the best choice is, but I can tell you I'm not writing: for(int i = 0; i <= arr.length-1; i++) just because it adds 3 extra characters. Just as I wouldn't write for(int i = 1; i < arr.length + 1; i++) for an 1 based array.


More information about the Digitalmars-d mailing list