3 ms·
As Chris said, `using` is mostly for interactive usage where having to import each name you use is annoying. If you want to import specific names, do `import So
by StefanKarpinski 7y ago
As Chris said, `using` is mostly for interactive usage where having to import each name you use is annoying. If you want to import specific names, do `import SomePackage: name1, name2`.
When doing `using SomePackage` it only imports the names that are explicitly exported by `SomePackage`. Even collisions don't cause problems very often because exported type names tend to be fairly unique and when two packages use the same name for a function, there's a strong chance it's actually the same generic function shared between the packages so there's no collision. When that's not the case and the name is fairly generic, e.g. `connect`, then it's quite common to use the API as `SomePackage.connect` rather than as just `connect`. This is quite a bit different from class-based object-oriented languages, so it takes a little while to get used to.
The issues with Parquet files are likely to get sorted out in the near future (a few months), so try again soon.