sorry there was something misformed in my toplevel test example,
all is ok even at toplevel:
(let ((l '(hello (world
(match l ;; <- the input object
(('hello (who)) ;; <- the pattern
(define x 3) (+ 1 x
On Wed, Oct 11, 2023 at 8:51 AM Damien Mattei wrote:
>
> i just for
i just forgot to say that in my code <+ is 'define'
On Wed, Oct 11, 2023 at 8:50 AM Damien Mattei wrote:
>
> hi,
>
> when i test at toplevel:
> scheme@(guile-user)> (match 1 (1 (define x3) (+ x 1)))
> While compiling expression:
> Syntax error:
> unknown location: definition in expression context