|
From: | David Kastrup |
Subject: | Re: Having trouble understanding optional and variable amount of arguments |
Date: | Thu, 08 Mar 2018 22:07:13 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Thomas Morley <address@hidden> writes: > 2018-03-08 17:29 GMT+01:00 David Kastrup <address@hidden>: >> Stefano Troncaro <address@hidden> writes: >> >>> @David >>> Thank you. The define-syntax and syntax-rules thing looked easier to >>> understand at first glance so I tried to use that. I'll experiment with >>> macros then. >> >> If we want to get rid of those problems: Guile-1.8 is no longer >> officially maintained. I think someone forked it for his own purposes. >> We might want to cooperate with him regarding some official place where >> one can fix those bugs. > > I've tested with my guilev2-lilypond.: > > \version "2.21.0" > > #(define-syntax test > (syntax-rules () > ((test conditional true false) > (if conditional > true > false)))) > > #(test #t (display "I'm true!\n") (display "I'm false!\n")) > > Works out of the box, no need for (use-syntax (ice-9 syncase)). > `use-syntax' gives an error now. Obviously it's dropped from guilev2. Sure, it's been part of Scheme standards for quite a while now. -- David Kastrup
[Prev in Thread] | Current Thread | [Next in Thread] |