Go Your Own Way (Part One: The Stack)

Adam D. Ruppe via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Fri Jul 7 06:48:47 PDT 2017


I would add a note to the "static arrays are interchangeable with 
dynamic arrays" saying that you can... and probably should 
explicitly slice them with `[]`.

The implicit slice is one of what I see as D's design flaws and 
brings up a number of problems. dip1000 and similar things might 
be able to fix the problems without changing the feature, but I 
won't be surprised if after a couple more years, we see that 
implicit slice get deprecated.


More information about the Digitalmars-d-announce mailing list