6 ms·
Just use `from os import nil` and you'll be only able to use that module with "os" prefix.
by Tiberium 8y ago
Just use `from os import nil` and you'll be only able to use that module with "os" prefix.
- Symmetry 8y agoYou can follow that convention and it works but you could also just have the convention of always using os.existsFile. Again, if you follow sensible rules when using Nim you're fine and the compiler will protect from mistakes better than most compiled languages. It's just laziness and cleverness that are dangers :)