3 ms·
Sure. However, this makes for verbose and wide code, which is not necessarily desirable. It may (arguably) reduce readability. Your brain has to parse and check
by jraph 5y ago
Sure. However, this makes for verbose and wide code, which is not necessarily desirable. It may (arguably) reduce readability. Your brain has to parse and check that each full path is the same, which increase the effort you need to make to properly read the code.
I guess it is a matter of taste.
- em-bee 5y agowell, i guess i haven't seen much code where modules were used so frequently that the verbosity became an issue. in the few cases where you have one or two verbose function calls that are called many times you can always assign them to some short variable and solve the problem that way. i don't see the path checking issue. module paths form an easily recognizable pattern that doesn't increase my effort to read the code. you'd have to have some very similar named modules for that to be a problem.