char-generator Bradley Lucier (14 Jan 2024 17:45 UTC)
Re: char-generator Per Bothner (14 Jan 2024 17:59 UTC)
Re: char-generator Marc Nieper-Wißkirchen (14 Jan 2024 18:02 UTC)
Re: char-generator John Cowan (16 Jan 2024 02:28 UTC)
Re: char-generator Per Bothner (16 Jan 2024 06:10 UTC)
Re: char-generator Antero Mejr (16 Jan 2024 16:49 UTC)
Re: char-generator John Cowan (17 Jan 2024 02:49 UTC)
Re: char-generator Marc Nieper-Wißkirchen (14 Jan 2024 18:00 UTC)
Re: char-generator Bradley Lucier (14 Jan 2024 18:04 UTC)
Re: char-generator Marc Nieper-Wißkirchen (14 Jan 2024 18:06 UTC)
Re: char-generator Antero Mejr (15 Jan 2024 03:17 UTC)
Re: char-generator John Cowan (16 Jan 2024 01:40 UTC)

Re: char-generator Per Bothner 14 Jan 2024 17:58 UTC


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/