"Dr. Arne Babenhauserheide" <[email protected]> writes: > The reason why this is supported may be that ' is no delimiter in r7rs: > > ⟨delimiter⟩ ⟶⟨whitespace⟩ ∣⟨vertical line⟩∣( ∣) ∣" ∣; > > https://standards.scheme.org/corrected-r7rs/r7rs-Z-H-9.html#TAG:__tex2page_sec_7.1 … > Would it also help with portability to warn (and finally disable) it > only in r7rs mode? That’s basically our strict mode. Then existing > programs would continue to work without changes but we would get better > portability.
Reading R7RS again (naturally the moment after hitting send) Section 7.1.1 rather looks like not splitting up identifiers on anything but delimitiers is correct behavior: > Identifiers that do not begin with a vertical line are terminated by a > <delimiter> or by the end of the input. > … > <delimiter> ⟶<whitespace> ∣<vertical line> ∣( ∣) ∣" ∣; https://standards.scheme.org/corrected-r7rs/r7rs-Z-H-9.html#TAG:__tex2page_sec_7.1 ' is explicitly defined as token, but so are other syntactic sugars (` , @, .) and those are accepted in identifiers. So I think compatibility should go the other way round and have an opt in for splitting up identifiers on '. (I know that it doesn’t help this case that one of my uses for Guile suffers when identifiers cannot contain '). Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. https://www.draketo.de
signature.asc
Description: PGP signature
