You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In page 24 of R7RS, the specification of patterns for syntax-rules contains this:
A template of the form (<ellipsis> <template>) is identical to <template>, except that ellipses within the template have no special meaning. That is, any ellipses contained within <template> are treated as ordinary identifiers. In particular, the template (<ellipsis> <ellipsis>) produces a single <ellipsis>. This allows syntactic abstractions to expand into code containing ellipses.
(define-syntax be-like-begin
(syntax-rules ()
((be-like-begin name)
(define-syntax name
(syntax-rules ()
((name expr (... ...))
(begin expr (... ...))))))))
(be-like-begin sequence)
(sequence1234) ;; => result should be 4
But in STklos this raises an error when using the macro:
stklos> (be-like-begin sequence)
**** Error:
map: malformed list'#f'
(type ",help" for more information)
I'll take a look into this, probably before the beginning of 2025 -- but I wanted to report the issue already.
The text was updated successfully, but these errors were encountered:
Hi @egallesio - happy holidays!
In page 24 of R7RS, the specification of patterns for
syntax-rules
contains this:But in STklos this raises an error when using the macro:
I'll take a look into this, probably before the beginning of 2025 -- but I wanted to report the issue already.
The text was updated successfully, but these errors were encountered: