TDPL reaches Thermopylae level
Justin Johansson
no at spam.com
Thu Oct 29 15:14:42 PDT 2009
Chris Nicholson-Sauls Wrote:
>
> Granted LTR is common enough to be expectable and acceptable. To be perfectly honest, I
> don't believe I have *ever* even used wchar/wstring. Char/string gosh yes; dchar/dstring
> quite a bit as well, where I need the simplicity; but I've yet to feel much need for the
> "weirdo" middle child of UTF.
>
> I would argue that string ~ wstring returning string is fine, but would suggest it be a
> warning for those like myself who might have first guessed it would "upscale to fit".
> Just so long as the foreach(dchar;string) trick is still around, char/string can cover an
> awful lot of ground.
>
> All that said, though, I don't think I would ever use ""~wstring as a means of conversion.
> It just feels like "there wasn't any other way to do this, so here's a cheap hack" --
> which just isn't the case.
Your overall reply well put. On last point: agree; cheap hacks should be avoided.
cheers, Justin
More information about the Digitalmars-d
mailing list