[r6rs-discuss] [Formal] Library form should prefix libraries

John Cowan cowan at ccil.org
Sat Jan 20 13:25:55 EST 2007


---
This message is a formal comment which was submitted to formal-comment at r6rs.org, following the requirements described at: http://www.r6rs.org/process.html
---
Submitter: John Cowan
Email address: cowan at ccil.org
Issue type: Simplification
Priority: Minor
Component: Libraries
Report version: 5.92
Summary:  The library form should prefix rather than enclose libraries.

Currently a library is represented by a single datum (a library form),
whereas a top-level program is represented by a sequence of forms.
The latter is more convenient for both generation and processing,
and I urge that it be adopted for libraries also.

This can be achieved by moving the export, import, and library-body
parts of the library out of the library form (typically this amounts
to moving a single close paren), and copying the language of report
section 7.1 about "a delimited piece of text" into report section 6.1.

-- 
Babies are born as a result of the              John Cowan
mating between men and women, and most          http://www.ccil.org/~cowan
men and women enjoy mating.                     cowan at ccil.org
    --Isaac Asimov in Earth: Our Crowded Spaceship




More information about the r6rs-discuss mailing list