OT - Replacing strings with slices in C# - high performance improvement
Jack Stouffer
jack at jackstouffer.com
Sat Apr 21 20:52:12 UTC 2018
On Saturday, 21 April 2018 at 19:15:58 UTC, Steven Schveighoffer
wrote:
> An RCString could have slicing just like C#.
>
> And it doesn't prevent "raw slicing" with char arrays.
>
> FWIW, I support having a string library type and have been
> advocating for it for years (I'd love to have my char arrays
> back as arrays of chars). But it MUST support slicing to pass
> muster in D.
A slice of a String could also return a String, and have some
property raw or toArray to get the underlying slice.
More information about the Digitalmars-d
mailing list