Range of chars (narrow string ranges)
H. S. Teoh via Digitalmars-d
digitalmars-d at puremagic.com
Fri Apr 24 11:52:02 PDT 2015
On Fri, Apr 24, 2015 at 08:39:36PM +0200, Martin Nowak via Digitalmars-d wrote:
> Just want to make this a bit more visible.
> https://github.com/D-Programming-Language/phobos/pull/3206#issuecomment-95681812
>
> We just added entabber to std.phobos, and AFAIK, it's the first range
> algorithm that transforms narrow strings to a range of chars, instead
> of decoding the original string and returning a range of dchars.
>
> Most of phobos can't handle such ranges like strings and you'd have to
> decode them using byDchar to work with them.
I really wish we would just *make the darn decision* already, whether to
kill off autodecoding or not, and MAKE IT CONSISTENT ACROSS PHOBOS,
instead of introducing this schizophrenic dichotomy where some functions
give you a range of dchar while others give you a range of char/wchar,
and the two don't work well together. This is totally going to make a
laughing stock of D one day.
T
--
Guns don't kill people. Bullets do.
More information about the Digitalmars-d
mailing list