guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Write a macro which defines a procedure


From: Ricardo Wurmus
Subject: Re: Write a macro which defines a procedure
Date: Sat, 20 Jul 2019 10:46:28 +0200
User-agent: mu4e 1.2.0; emacs 26.2

Hi,

> However, when I call this macro as follows:
>
>
> --------8<--------begin-------->8--------
> (define-api-route /container/json 'POST
> application/x-www-form-urlencoded)
> --------8<--------end-------->8--------
>
> I get the following error:
>
> --------8<--------begin-------->8--------
> ;;; <stdin>:33:0: warning: possibly unbound variable `/container/json'
> ;;; <stdin>:33:0: warning: possibly unbound variable
> `application/x-www-form-urlencoded'
> <unnamed port>:33:0: In procedure module-lookup: Unbound variable:
> /container/json
> --------8<--------end-------->8--------

Here it might help you to see the expansion of the macro.  In the REPL
you can use

    ,expand (define-api-route /container/json 'POST 
application/x-www-form-urlencoded)

to see what Scheme code the thing expands to.


--
Ricardo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]