On Feb 3, 2008, at 12:53 PM, Jacques Vidrine wrote:
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
CHICKEN
Version 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> ^D
Use the 'matchable' egg. The "hygienic" match macro. HTH
Hi Kon,
Thanks! So, the standard "match" extension is incompatible with
"syntax-case".
Well, the "core" (or built-in) "match" extension is incompatible with
"syntax-case". Just to mince words :-)
Perhaps the documentation for "match" should mention this, as it
was not obvious what the problem was for awhile when I ran into it.
Yes.
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?
The goal is to be "complete" but "minimal". Generally, unless it is
used by the "core", it isn't part of Chicken. (complete & minimal
here are a little fuzzy.)
Chicken is deployed on mobile devices & standalone hardware. It pays
to be "minimal".
Cheers,
--
Jacques
Best Wishes,
Kon
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users