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 213: Lift ordering restrictions on definitions vs. syntax definitions

2011-08-21 06:10:09
WG1 - Core
alexshinn
major
cowan
fixed
source
closed
2011-06-03 01:42:06
defect

I hope WG1 will reconsider lifting the restriction that "any internal syntax definitions in a body must come before any internal definitions."

Sometimes I write macros that expand into both definitions and syntax definitions. If this restriction stands I won't be able to reliably use those macros in <bodies> (and nor would anyone else).

--Jonathan Kraut

I suggested that this rule only applied to overt definitions, not ones that were the product of macro expansion. Andre van Tonder points out that without macroexpanding, you cannot tell which forms are syntax definitions, which are definitions, and which are neither.

resolutionfixed
statusnewclosed