Jonathan M Davis:

The problem is that you need to check it. This is _slower_ than exceptions in the normal case,

Right, but verifying the correctness of the Unicode encoding of a string probably on average requires much more than time than testing a single conditional. So I think this tiny added time is acceptable.

Bye,
bearophile

Reply via email to