On 1/14/24 09:44, Bradley Lucier wrote:
> First question: Why do "invalid code points fulfill the char? predicate"? It does seem to be true, at least for Gambit, but is there some document somewhere that specifies this?
If char? is a simple type predicate, similar to string? or vector?, then it seems reasonable
that it return true for invalid code points. Plus it makes it cheaper to implement.
If you want a predicate to detect invalid code points (why? - what is the use case?)
it should have a different and longer name.
--
--Per Bothner
xxxxxx@bothner.com http://per.bothner.com/