Hi!

In the asynhttp server documentation, the example code has this:

let msg = %* {"message": "Hello World"}

but that doesn't seem to compile, at least not for me.

I just get:

Error: undeclared identifier: '%*'

What's up?

http://nim-lang.org/docs/asynchttpserver.html

Thanks Luke

2017-01-09 19:57:01

Where did you find this example?

The %* operator is defined in the json module (doc). It just creates a JSON element based on the key/values specified.

2017-01-09 22:02:21
The example is here:

http://nim-lang.org/docs/asynchttpserver.html

in the section titled "Examples"

2017-01-09 23:51:56