|
From: | Jacques Vidrine |
Subject: | Re: [Chicken-users] match and syntax-case conflict? |
Date: | Sun, 3 Feb 2008 12:53:40 -0800 |
On Feb 3, 2008, at 10:49 AM, Kon Lovett wrote:
On Feb 3, 2008, at 10:38 AM, Jacques Vidrine wrote:Hello, Is it not currently possible to use match and syntax-case together? $ csi -n CHICKENVersion 3.0.0 - macosx-unix-gnu-x86 [ manyargs dload ptables applyhook ] (c)2000-2008 Felix L. Winkelmann compiled 2008-01-31 on madman (Darwin)#;1> (load-verbose #f) #;2> (use match) #;3> (match '(1 2) [(a . b) b]) (2) #;4> (use syntax-case) #;5> (match '(1 2) [(a . b) b]) Error: invalid syntax: (a . b) #;5> ^DUse the 'matchable' egg. The "hygienic" match macro. HTH
Hi Kon,Thanks! So, the standard "match" extension is incompatible with "syntax-case". Perhaps the documentation for "match" should mention this, as it was not obvious what the problem was for awhile when I ran into it.
Am I correct to assume that this is because a compatible "match" implementation is not possible without a dependence on a hygienic macro implementation, and that Chicken does not wish to include a standard hygienic macro implementation?
Cheers, -- Jacques
[Prev in Thread] | Current Thread | [Next in Thread] |