dmd foreach loops throw exceptions on invalid UTF sequences, use replacementDchar instead

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Nov 10 12:17:20 UTC 2021


On Wednesday, 10 November 2021 at 11:47:16 UTC, Guillaume Piolat 
wrote:
> It seems in practice it doesn't have to be utf-8 until you use 
> something that assume it is. Which is ok for me.

Hm… for me the key advantage of stricter typing is that you can 
make more functions free of exceptions and error-handling without 
using much human judgment. The ideal is to only do error handling 
in I/O call-trees.




More information about the Digitalmars-d mailing list