Module writing hints: Difference between revisions

→‎Name collisions: sugegst -> suggest
(→‎Module licencing: pulbished -> published)
(→‎Name collisions: sugegst -> suggest)
Line 55: Line 55:
== Name collisions ==
== Name collisions ==


Beware of exporting any names from a module that are likely to be used as local variables in loops, whatever. This is why the [[Module programming guidelines]] sugegst prefixing them all with the module name, or using a struct, so that all exported identifiers are struct sub-members.
Beware of exporting any names from a module that are likely to be used as local variables in loops, whatever. This is why the [[Module programming guidelines]] suggest prefixing them all with the module name, or using a struct, so that all exported identifiers are struct sub-members.
0

edits