Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ellipsis quote and check behavior of _ in macros #131

Open
GoogleCodeExporter opened this issue Apr 23, 2015 · 2 comments
Open

Add ellipsis quote and check behavior of _ in macros #131

GoogleCodeExporter opened this issue Apr 23, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

$ ol
You see a prompt
> (define-syntax foo 
      (syntax-rules () 
        ((_ 1 2) (_ 2 1)) 
        ((_ 2 1) 32)))
foo
> (foo 1 2)
What is '_'? 

Will have to check what the specs have to say about this. Will add if required 
or unspecified.

Original issue reported on code.google.com by aohelin on 24 Jan 2012 at 9:57

@GoogleCodeExporter
Copy link
Author

Didn't spot anything about this in R7RS, but did spot some new and missing 
things
 - list beginning with ellipsis turns all ellipsis within a term into regular identifiers
 - underscore appearing in literals should take precedence over the wildcard behavior (possibly already does, just need to change the lines)
 - multiple pattern variable occurrences are disallowed (why? at least in non-ellipsis use they are simple and also useful)

Original comment by aohelin on 24 Jan 2012 at 10:13

@GoogleCodeExporter
Copy link
Author

Original comment by aohelin on 9 May 2012 at 12:28

  • Changed title: Add ellipsis quote and check behavior of _ in macros
  • Added labels: Type-R7RS
  • Removed labels: Type-Defect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant