4 ms·
I mean, copy/paste is a thing, I'm not suggesting you have to always type out every single character. Just know what's being imported.
by SamWhited 2y ago
I mean, copy/paste is a thing, I'm not suggesting you have to always type out every single character. Just know what's being imported.
- kbolino 2y agoI don't see a functional difference between copy-paste and autoimport. They have more or less the same risks. Imports should rarely be manually managed directly in source. Doing that is the epitome of tedium and most imports are just boilerplate, so your eyes will glaze over and you'll miss the finer points unless a specific file warrants deeper scrutiny. That doesn't mean imports should never be reviewed, and again, I think the tools need a lot of improvement in this regard.
- tedunangst 2y agoI've never copy and pasted crypto/rand and gotten math/rand.
- kbolino 2y agoYeah that's a legit gripe but I wasn't really talking about the standard library which uses nice short import paths.