Steven Schveighoffer wrote:
On Mon, 19 Jul 2010 16:04:21 -0400, Walter Bright
<newshou...@digitalmars.com> wrote:
Strings in D are deliberately meant to be arrays, not special things.
Other languages make them special because they have insufficiently
powerful arrays.
Andrei is changing that. Already, isRandomAccessRange!(string) ==
false. I kind of don't like this direction, even though its clever.
That decision may be a mistake.
I agree here. Anything that uses indexing to perform a linear operation
is bound for the scrap heap. But what about this:
foreach(c; str)
which types c as char (or immutable char), not dchar.
Probably too late to change that one.