We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0db8a75 commit abf619aCopy full SHA for abf619a
coding-style.rst
@@ -212,6 +212,19 @@ Multi-line ::
212
213
where
214
215
+Exports
216
+-------
217
+
218
+* Export symbols explicitly. Rationale:
219
220
+ * If not explicitly exported, you may miss unused functions in the
221
+ module as all functions get exported by default. For example, you defined
222
+ a benchmarking function but did not add it to benchmarks list. It will
223
+ never be reported as it is treated as used via implicit exports.
224
+ * Compiler optimizations get impacted due to exporting because the compiler
225
+ has to optimize the function and put it in the interface files.
226
+ Optimizations work better and are more efficient if you explictly export.
227
228
Imports
229
-------
230
0 commit comments