Re: NUL-terminated strings and eof-object-terminated generators
Marc Nieper-WiÃkirchen 17 Feb 2022 13:39 UTC
Am Do., 17. Feb. 2022 um 14:18 Uhr schrieb Daphne Preston-Kendal
<xxxxxx@nonceword.org>:
> With strings, Large should either make its mind up, or force implementers to make their minds up, between two options: NULs in strings are allowed; or they are not allowed, but a catchable, distinguishable error is signalled if you try to make one. Silent failure, mysterious truncation, and nasal demons are unacceptable in ‘mainstream software development’, where untrusted input from malicious sources is a daily reality.
Unless we want to add a gratuitous incompatibility to R6RS, there is
only one option, namely allowing NULs in strings. (This also
simplifies the semantic model of the language removing one exception.)