Reasons to use D

Adam D. Ruppe via Digitalmars-d digitalmars-d at puremagic.com
Sat Sep 12 11:48:50 PDT 2015


On Saturday, 12 September 2015 at 18:44:44 UTC, Ola Fosheim 
Grøstad wrote:
> Arrayviews ("slices") are available as a type so you can do it 
> like this:

Yeah, there's also the Array.slice and String.substring that work 
kinda similarly in old standard javascript. But there's still a 
lot of type-specific verbiage in there, whereas with D, it is 
always the same [a .. $] for almost anything so it is one thing 
to remember instead of three or more.



More information about the Digitalmars-d mailing list