nim-in-action-code
nim-in-action-code copied to clipboard
Nim in Action code samples
I have not yet fixed the code for Nim 1.6.0 from the book, but if I achieve it, may I propose a Pull Request to make the code functional in...
I think returned values in Listing 7.30 should be reversed. ``` proc userLogin(db: Database, request: Request, user: var User): bool = if request.cookies.hasKey("username"): if not db.findUser(request.cookies["username"], user): user = User(username:...
not GC-safe
Some of my Nim projects use asyncHttpServer, and I'm always nagged by the requirement for GC safe HTTP handlers, even when not using threads but only async. Curious to see...
I have, in chapter 9 about the config macro: - fixed import (json functions were used inside the macro) - Remove deprecated NimIdent type: NimIdent->string, object.ident -> object.strVal - getNum...
The below sequence code on Page 42 is not able to compile in nim 2.0: let list = @[4, 8, 15, 16, 23, 42] for i in 0 ..