It's perfectly fine to collate all definitions into a single type block. I already handle includes programmatically. What would be an idiomatic way to post-process .nim files? My naive approach would be to parse the AST, reorder it and dump it. However, I'm not sure if nim parses a file that's invalid to begin with.
Thanks for outlining the best practices Stefan. I think the gobject approach is also very neat.
