Hi Juhani, Could you file an issue for this on Codeberg?
https://codeberg.org/spritely/hoot/issues This mailing list is for discussing development of Guile but Hoot is a separate project. On Tue, Dec 1, 2026 at 8:47 AM Juhani Viheräkoski < [email protected]> wrote: > I have a one-liner that Hoot evaluator from the web page doesn't interpret > properly. I tested it works in Guile 3.0.9, ie gives 5 for the second > example. > > -- > Juhani > > (define (foo a b) ((if (< a b) + -) a b)) > > (hoot user)> (foo 5 10) > => 15 > (hoot user)> (foo 10 5) > > Scheme error: > 1. #<&undefined-variable module: #<module (hoot numbers)> name: %generic> > 2. #<&source file: "hoot/errors.scm" line: 95 column: 22> > Nice find. This program may seem trivial, but it requires a macro expansion that is not happening correctly in the interpreter (works fine when compiled and thus using Guile's macro expander). - Dave
