3 ms·
Another reason why I prefer this style is modularity. Each file does only one thing (in this compiler a file is a compiler pass or defines a data structure) and
by rui314 12y ago
Another reason why I prefer this style is modularity. Each file does only one thing (in this compiler a file is a compiler pass or defines a data structure) and exposes only a limited set of functions. Other functions are marked as "static" to get a file scope. The shorter a file, the narrower the scope. You of course need to achieve the right balance between number of files and size of each file. The current status feels the right balance for my taste.
- andrewchambers 12y agoWithout even looking inside the files, you can find the map, set, and list definitions. Needing to look into a file called "utils.c" or "datastructures.c" is less clear than what it is currently imo, so I support your design.