Handling the types in a bigger project
Ziggit
Handling the types in a bigger project
My project is growing and the file structure is reasonably ok, I think. I find myself often importing the needed types, which can get exhausting. Now I am a bit of a all or nothing type. all: What I could do is “flattening” all existing types in a t.zig file and use that everywhere. nothing: Import in each file specifically only what is used. Tiring but clean. How do you guys handle this? An example from one of my files: const std = @import("std"); const common = @import("common.zig"); ...
0 comments
No comments yet.