Separate slices and dynamic arrays

Walter Bright newshound2 at digitalmars.com
Sun Feb 2 04:32:32 UTC 2025


On 8/2/2024 2:43 PM, Quirin Schroll wrote:
> D's slices are what in C++ is a vector or string, a span or string_view, or a 
> valarray, or even something like an output iteratior.
I consider the C++ menagerie of arrays as madness. After all, why should a 
string be different than an array? Ick.

Anyhow, the change from D1 to D2 subtly changed the way slices worked, and that 
unintentionally caused Sociomantic a great deal of trouble. I do not wish to 
inflict that on anyone again.


More information about the dip.ideas mailing list