public
Description: An easy way to make web apps (in PLT Scheme)
Homepage: http://blog.leftparen.com
Clone URL: git://github.com/vegashacker/leftparen.git
Click here to lend your support to: leftparen and make a donation at www.pledgie.com !
leftparen / conventions.txt
100644 17 lines (12 sloc) 0.702 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
LP conventions:
 
* When a macro introduces new variable identifiers which is available
in a "body" of the form, we surround the identifiers with parens, and
position them just before the body. For example,
 
(sessioned-response (sesh req) body-goes-here-and-may-refer-to-sesh-and-req ...)
 
Here sesh and req are both identifiers (not expressions bound in the
enclosing environment. The inspiration for this convention is lambda,
in which, in most cases at least, the first argument is a list of
identifiers.
 
* When a function takes a single xexpr we often use the identifier
  "body". But if the function expects an arbitrary number of xexpr,
  then we encourage the use of the identifier "bodies".