-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skeleton updates #3
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
ping @mtfishman |
@lkdvos I've started to prefer the style of having the using statements at the top of the files where they are being used, rather than in a long list at the top of the module. (Note that ExplicitImports.jl can help with finding the file locations.) |
I understand the benefit, although my main reason against this is that these I don't have too much experience with that package, how does it do if you are using the same imported name in multiple different files? |
That's definitely a disadvantage, I guess I just have the attitude that it doesn't have to be perfect but at least it gives more useful information than having them all in a big list at the top level, and we can occasionally go and fix them up by commenting them all out and running ExplicitImports.jl with So, my summary is that the current system is imperfect but still better than putting all using statements at the top level, and could be made more perfect with some tooling, say a CI check based on ExplicitImports.jl, a tool for making a PR to fill in missing using statements, etc. |
I would say that having them all in one list at the top is more convenient, because you know there's a single place to go looking for the imports, and scrolling up to the top is not that much less work than switching to the module file. |
Let's keep the current style for now and we can reassess as we go forward. We started with top level imports but recently switched to this new file-based style and in practice I like it better since it is easier to see locally where functions/types are coming from. |
For some context, this is the style used in Python, you are really forced to do it this way since each file is automatically a module. That design can be a bit annoying but it forces more discipline about namespaces. |
This reverts commit 4ab42c5.
This PR brings the package up to date with the skeleton v0.2.0