5 ms·
> even just redefining a struct field requires restarting the interpreter It really doesn't if you use a module.
by fishmaster 6y ago
> even just redefining a struct field requires restarting the interpreter
It really doesn't if you use a module.
- saiojd 6y agoI mean, I still need to recompile the module no? Or do you split your project into several small modules to avoid this? (I've avoided this so far as I found the module system a bit tedious tbh, as it requires to explicitly list everything you need to export, as well as manually import stuff from the parent module).
- fishmaster 6y agoUsually as long as I develop I have structs that I change inside a small module, then I can recompile just the module and access the new struct, e.g. for neural networks. It's not perfect but it's something.
- saiojd 6y agoUseful trick, I'll try that, thanks.