Is there a simple way to echo/debug unknown variables?
Learning Nim,I keep coming up against using variables that I'm not sure of the structure, it would be helpful to be able to dump them out in console to see their internal structure and values.
That looks exactly like what I need, but: If I do just repr(c), I get (as expected) "value of type 'string' has to be discarded"
But if I try echo(repr(c)), I get "Error: type mismatch: got (Table[system.string, asyncnet.AsyncSocket], string, string)"
That doesn't make sense to me..
I've rewritten that part of the code, and now using echo repr(c) it outputs the information.
It's the same data as before, but now it works. lol
let client = await server.acceptAddr()
echo repr(client)