This site is a static rendering of the Trac instance that was used by R7RS-WG1 for its work on R7RS-small (PDF), which was ratified in 2013. For more information, see Home.

Ticket 327: Specify that read, the program reader, and string->number accept the same syntax

2012-10-09 10:47:35
WG1 - Core
cowan
major
cowan
fixed
source
closed
2012-01-11 14:50:45
defect

Currently there is no guarantee of this.

Possibilities:

All the same: The lexical syntax for numbers accepted by string->number and read, as well as the corresponding syntax of literal numbers in programs, must be the same.

All the same at run time: The lexical syntax for numbers accepted by string->number and read must be the same, but the relationship with the the corresponding syntax of literal numbers in programs is unspecified.

All potentially different: The relationships between lexical syntax for numbers accepted by string->number and read, as well as the corresponding syntax of literal numbers in programs, is unspecified.

descriptionCurrently there is no guarantee of this. Proposed language (from Vincent Manis): The lexical syntax for numbers accepted by string->number and read, and the corresponding syntax in programs must be the same. In the alternative, we should at least say the relationship is unspecified.Currently there is no guarantee of this. Possibilities: ''All the same'': The lexical syntax for numbers accepted by `string->number` and `read`, as well as the corresponding syntax of literal numbers in programs, must be the same. ''All the same at run time'': The lexical syntax for numbers accepted by `string->number` and `read` must be the same, but the relationship with the the corresponding syntax of literal numbers in programs is unspecified. ''All potentially different'': The relationships between lexical syntax for numbers accepted by `string->number` and `read`, as well as the corresponding syntax of literal numbers in programs, is unspecified.

More from Vincent:

The syntactic issues relate to such things as whether S, F, D, and L are valid ("the implementation may accept...", p. 32). Pragmatic issues include whether integer or other literals might overflow (on a bignum-less implementation), whether or not the implementation applies the same restrictions, described at the bottom of p. 37) to string->number, read, and literals in source programs; the default precision if the E exponent marker is used; and numerical roundoff on input conversion (whether, e.g., (= (string->number? 0.1) 0.1) is defined to be true).

Vincent formerly supported the All the same choice, but now supports All the same at run time.

statusnewdecided

The WG voted to adopt this proposal.

owneralexshinncowan
statusdecidedwriting
resolutionfixed
statuswritingclosed

That is, we adopted the proposal that all three support the same syntax.