▲ | deathanatos 3 hours ago | |
It's not a "UTF-8 codepoint", that's horridly mangling the terminology. Code points are just code points.The input to a UTF-8 encode is a scalar value, not a code point, and encoding a scalar value is infallible. What doubly kills me is that Rust has a dedicated type for scalar values. (`char`.) (In languages with non-[USV]-strings…, Python raises an exception, JS emits garbage.) |