bug-kawa
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-kawa] [bug #40814] R6RS/R7RS ellipsis escapes


From: John Tobey
Subject: [Bug-kawa] [bug #40814] R6RS/R7RS ellipsis escapes
Date: Thu, 05 Dec 2013 04:31:08 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:20.0) Gecko/20100101 Firefox/20.0

URL:
  <http://savannah.gnu.org/bugs/?40814>

                 Summary: R6RS/R7RS ellipsis escapes
                 Project: Kawa
            Submitted by: jtobey
            Submitted on: Thu 05 Dec 2013 04:31:07 AM GMT
                Category: Scheme language
                Severity: 3 - Normal
              Item Group: Feature Request
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Could we please have "(... ...)" expand to a literal "..."?  This is both R6RS
and R7RS-draft9:


(define-syntax be-like-begin
  (syntax-rules ()
    ((be-like-begin name)
     (define-syntax name
       (syntax-rules ()
         ((name expr (... ...))
          (begin expr (... ...))))))))
(be-like-begin sequence)
(display (sequence 1 2 3 4)) ; 4
(newline)


It is pretty widely supported, even by earlier Kawa versions if I read
correctly: http://osdir.com/ml/lisp.scheme.kawa/2005-06/msg00039.html


$ racket -f bug.scm
4
$ guile -c '(use-syntax (ice-9 syncase)) (load "bug.scm")'
4
$ sisc -x bug.scm
4
$ kawa bug.scm
bug.scm:3:5: ... follows template with no suitably-nested pattern variable
bug.scm:3:5: ... follows template with no suitably-nested pattern variable
bug.scm:9:10: no matching syntax-rule for sequence






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40814>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]