Re: Is it possible for Str to not be well formed?

2019-09-17 Thread Elizabeth Mattijsen
Short answer: ti my knowledge, if you can make a string contain invalid codepoints, it is a bug and should be reported so that it can be fixed. > On 15 Sep 2019, at 23:08, Darren Duncan wrote: > > I'm defining an API that takes only well formed Str objects, meaning it would > only accept Str

Is it possible for Str to not be well formed?

2019-09-15 Thread Darren Duncan
I'm defining an API that takes only well formed Str objects, meaning it would only accept Str whose Unicode codepoints are all in the set {0..0xD7FF,0xE000..0x10} and in particular there are no UTF-16 surrogate characters, and it would do so as a yes/no stricture without coercing anything