[Issue 14519] [Enh] foreach on strings should return replacementDchar rather than throwing
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Apr 28 23:25:42 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14519
--- Comment #4 from Vladimir Panteleev <thecybershadow at gmail.com> ---
Here's a counter-proposal: when encountering invalid UTF-8, instead of throwing
exceptions, throw errors. This will fix the nothrow and performance problems,
and will avoid the risk of data corruption. The workaround is to pre-sanitize
the input. The impact of breaking existing code is the same as the original
proposal.
--
More information about the Digitalmars-d-bugs
mailing list