Changeset 32914 in project


Ignore:
Timestamp:
11/17/15 17:30:48 (5 years ago)
Author:
juergen
Message:

explicit-renaming-macros tutorial updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/explicit-renaming-macros

    r31126 r32914  
    244244
    245245But this is now hygienic!
    246 
    247 With additional clauses, (inject ...) and (keywords ...) define-macro
    248 cares for injecting and keywords as well.
    249 
    250 Here is an explicit-renaming implementation of a verbose version
    251 of if with define-er-macro
    252 
    253 <enscript highlight="scheme">
    254 (define-er-macro (vif test (then . xprs) (else . yprs))
    255   (keywords then else)
    256   `(,%if ,test
    257      (,%begin ,@xprs)
    258      (,%begin ,@yprs)))
    259 </enscript>
    260246
    261247In case you prefer a macro more similar to syntax-rules, use
     
    294280== Updated
    295281
    296 Jan 31, 2014
     282Nov 17, 2015
Note: See TracChangeset for help on using the changeset viewer.