[Scheme-reports] Symbol escapes - clarification Shiro Kawai (09 Jan 2012 13:17 UTC)
Re: [Scheme-reports] Symbol escapes - clarification John Cowan (09 Jan 2012 16:12 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Peter Bex (09 Jan 2012 18:22 UTC)
Re: [Scheme-reports] Symbol escapes - clarification John Cowan (09 Jan 2012 19:52 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Peter Bex (09 Jan 2012 19:59 UTC)
Re: [Scheme-reports] Symbol escapes - clarification John Cowan (10 Jan 2012 01:52 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Alaric Snell-Pym (10 Jan 2012 10:36 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Jussi Piitulainen (10 Jan 2012 10:54 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Peter Bex (10 Jan 2012 11:14 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Alaric Snell-Pym (10 Jan 2012 11:24 UTC)
Re: [Scheme-reports] Symbol escapes - clarification John Cowan (11 Mar 2012 20:05 UTC)
Re: [Scheme-reports] Symbol escapes - clarification Alaric Snell-Pym (10 Jan 2012 11:15 UTC)

Re: [Scheme-reports] Symbol escapes - clarification John Cowan 10 Jan 2012 01:51 UTC

Peter Bex scripsit:

> Yeah, # is pretty special.  The spec should probably leave that
> unspecified.

So it is.

> Maybe a whitelist of characters that are definitely allowed
> in symbols?

There is such a list (of ASCII characters only) in 2.1.

> Several (most?) schemes actually try to read until the next
> s-expression separator and convert it to a number. If that fails, it's
> a symbol and taken as-is.  I'm not sure this behaviour should be
> standardized as it's very "loose" and poorly defined.

The R7RS-draft behavior is that a sequence of letters, numbers, specified
ASCII symbols, and non-ASCII characters in certain general categories
is an identifier, *provided* it does not have a prefix which is a number.
This is easy to state verbally, but makes for a messy BNF.

--
Henry S. Thompson said, / "Syntactic, structural,               John Cowan
Value constraints we / Express on the fly."                 cowan@ccil.org
Simon St. Laurent: "Your / Incomprehensible     http://www.ccil.org/~cowan
Abracadabralike / schemas must die!"

_______________________________________________
Scheme-reports mailing list
Scheme-reports@scheme-reports.org
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports