Ah shame, looks like I'm a few months late. But I wanted to suggest adding 
official support for loading Nimscript at runtime. Something like:
    
    
    import std/nimscripts
    
    let scriptObj = loadScript "script.nims"
    scriptObj.someFn()
    
    
    Run

I know the third party library `nimscripter` does this (thanks @beef331!), but 
it seems a little bit finicky to set up since it depends on the experimental 
use of the compiler as a library and adds quite a bit of size to the executable.

This would encourage using Nim itself as a configuration language, and some 
other possibilities like using Nim as a scripting language in game engines.

Not sure if this is a breaking change though (and if anything has changed since 
I last tried `nimscripter` about a year ago).

Reply via email to