On Sun, Jan 14, 2024 at 12:59 PM Per Bothner <[email protected]> wrote:
> 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. > What meaning would you assign to (integer->char -1)? Kawa reports an error, as I'd expect. If you want a predicate to detect invalid code points (why? - what is the > use case?) > Because it's not a character. (Are you sure you don't mean an unassigned code point? That should not be an error.)
