"Dr. Arne Babenhauserheide" <[email protected]> writes: > ' 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 '.
This goes deeper: racket disallows any token in identifiers, but chicken accepts ` (but turns it into |a`b| on writing) while splitting on ' and failing on , (replaced by unquote). And Guile accepts all tokens as part of identifiers that are not delimiters (but now started to warn on '). The most robust way I found to try it out is '(a`b a'b a,b a,@b): Guile: (a`b a'b a,b a,@b) Racket/Chez: (a `b a 'b a ,b a ,@b) Chicken: (|a`b| a (quote b) a (unquote b) a (unquote-splicing b)) sbcl: (A `B A 'B) ; fails on , and ,@ emacs: (a `b a 'b a (\, b) a (\,@ b)) kawa: (a (quasiquote b) a (quote b) a (unquote b) a (unquote-splicing b)) mit: (a (quasiquote b) a (quote b) a (unquote b) a (unquote-splicing b)) (note the white space signifying that identifiers were split) Best wishes, Arne -- Unpolitisch sein heißt politisch sein, ohne es zu merken. https://www.draketo.de
signature.asc
Description: PGP signature
