Is it possible to expose objects to nimscript? Does any example exist?
And i would like to share a macro for same pattern:
import macros
import tables
macro ctor*(none: untyped): auto =
let args = callsite()
if args[1].kind != nnkProcDef:
error("`ctor` pragma is used only with procedures.")
var prc = args[1]
IMHO skins are cancer. Problem of Nim is that it is trying to be
best-everything all at once. Result of this is over a decade of unstable
language which did not reach 1.0 yet. Yes, we all have our own tastes. I
dislike some stuff in nim as well. I can get used to them if language is
solving my