Summary

Support "fender" in syntax-rules

Metadata

Description

 * <pattern> <fender> <template>

 * <fender> is an <s-expr> that must evaluate to "true"

 * <fender> is evaluated as (and <fender> #t)

+ Useful since an er-transformer would otherwise be necessary for very common tasks.

- Muddies syntax-rules in that a procedural element is introduced


- (identifier? obj)

(define (identifier? obj)

 (let ((sans (strip-syntax obj)))
   (and (symbol? sans) (not (keyword? sans)) ) )

-(bound-identifier=? id1 id2)

-(free-identifier=? id1 id2)

Changes and comments

[2011-02-05 15:36:11 UTC] sjamaan removed milestone 4.7.0

[2013-05-25 14:55:00 UTC] sjamaan changed status from new to closed

[2013-05-25 14:55:00 UTC] sjamaan set resolution to wontfix

[2013-05-25 14:55:00 UTC] sjamaan wrote:

Personally, I think this doesn't belong in syntax-rules. It's complex enough as it is, and we'll add more features piled on by R7RS soon, too.

This could be an egg.