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 9: tail patterns in syntax-rules

2012-10-04 23:36:51
WG1 - Macros
alexshinn
major
alexshinn
fixed
source
closed
2010-02-23 16:21:25
defect

SRFI-46 and R6RS both allow a fixed number of tail patterns following an ellipsis in a syntax-rules pattern:

(P1 ... Pk Pe <ellipsis> Pm+1 ... Pn)

R6RS further allows dotted tail patterns

(P1 ... Pk Pe <ellipsis> Pm+1 ... Pn . Px)

where Px only matches a dotted list.

Do we allow either or both of these extensions?

milestone␣␣
resolution␣fixed
statusnewclosed

The WG voted to accept both these features.

resolutionfixed␣
statusclosedreopened

To be revoted because there was no simple majority.

resolution␣fixed
statusreopenedclosed

Both patterns will be accepted.

resolutionfixed␣
statusclosedreopened
owneralexshinn␣
statusreopenedassigned
statusassigneddecided
owner␣alexshinn
statusdecidedwriting
resolution␣fixed
statuswritingclosed