[r6rs-discuss] [Formal] Script-body differences

From: AndrevanTonder <andre>
Date: Mon Oct 2 04:00:50 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.
Received on Sun Oct 01 2006 - 13:20:24 UTC

This archive was generated by hypermail 2.3.0 : Wed Oct 23 2024 - 09:15:00 UTC