This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
destructuring binding at lambda formal #183
Comments
FYI there is a pattern matching library https://github.com/SaitoAtsushi/pattern-match-lambda. |
What kind of error did you get? |
@wasabiz below. The cause is this code. (define-syntax %if-match-vector
(syntax-rules ()
((_ (literals ...) #() ind e seq alt) seq)
((_ (literals ...) #(p r ...) ind e seq alt)
(%if-match (literals ...) p (vector-ref e ind)
(let ((i ind))
(%if-match-vector (literals ...) #(r ...) (+ i 1) e seq alt))
alt)))) Detailed (debug) log is too long to paste even onto gist. |
@zeptometer It seems not to be fixed. I got this error (define fact
(pattern-match-lambda ()
((0) 1)
((n) (* n (fact (- n 1)))))) Too specialized to vector? |
In (picrin experimental lambda) library, there exists what this issue proposed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: