SimonN wrote:
Should I always validate text from files manually with std.utf.validate?Or should I memorize which functions throw, then validate manually whenever I call the non-throwing UTF functions? What is the pattern behind what throws and what asserts false?
i'd say: "ALWAYS validate before ANY further processing".