[r6rs-discuss] [Formal] Script-body differences
AndrevanTonder
andre at het.brown.edu
Sun Oct 1 13:20:24 EDT 2006
Name : Andre van Tonder
Email : andre at het.brown.edu
Type : enhancement
Priority : minor
Component : Script/body semantics
Version : 5.91
Pages : 27
Dependencies: None
Summary:
--------
Difference between bodies and script bodies
seem like an unnecessary complication.
Description:
------------
The description of scripts gives a meaning to expressions
preceding definitions that may just as easily be applied
to other bodies. The fact that it does not complicates
the draft.
If the same rules applied to both scripts and bodies, it
would be easier to convert one into the other during
incremental or interactive development. Presumably this
would be a useful feature.
Also, the current state of affairs slightly complicates
implementation. I currently use the same code for expanding
both scripts and bodies, except for a couple of statements
of the form
(when (not script?) (syntax-violation ....))
which seem like a gratuitous complication.
Suggestion:
-----------
Perhaps treat scripts/bodies the same by either allowing or
disallowing interspersed expressions/definitions in both.
More information about the r6rs-discuss
mailing list