Skip to content
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

refactor/export: export important functionality from main module #40

Merged
merged 1 commit into from Feb 4, 2016

Conversation

hobofan
Copy link
Member

@hobofan hobofan commented Feb 3, 2016

No description provided.

@mitchmindtree
Copy link

Just thought I'd mention that personally I'm not a fan of the glob imports, mainly for reasons you've probably already heard before 😸

Although it saves a step for the writer, it puts an extra step in the process of determining where names are being imported from, which imported names are actually being used and what traits might different methods be coming from. Normally I like to opt for moving as much of the burden from the reader to the writer as possible, but everyone has their own opinion here so feel free to disregard this comment!

@hobofan
Copy link
Member Author

hobofan commented Feb 4, 2016

@mitchmindtree : I mean in the end you don't have to use use collenchyma::*;, but I think it is important that all important parts are exported from the root module, so you don't have to know how Collenchyma is structured internally (which also allows us more freedom in refactoring).

It's also just a first step, I just put in what I knew from experience you would usually need to use Collenchyma, but there might be a one or two that aren't really needed. So on one side we might clean that up a bit more once we start approaching a 1.0 state, on the other hand I would also like to add another module, which exports everything that is important for plugin developers (this was focused on plugin-users).

@hobofan
Copy link
Member Author

hobofan commented Feb 4, 2016

@homu r+

@homu
Copy link
Collaborator

homu commented Feb 4, 2016

📌 Commit 4aea78d has been approved by hobofan

@homu
Copy link
Collaborator

homu commented Feb 4, 2016

⚡ Test exempted - status

@homu homu merged commit 4aea78d into master Feb 4, 2016
homu added a commit that referenced this pull request Feb 4, 2016
refactor/export: export important functionality from main module
@hobofan
Copy link
Member Author

hobofan commented Feb 4, 2016

@mitchmindtree: Sorry if that sounded a bit too dismissive, but I think Collenchyma has some deficiencies on the user side, and this was definitely one of them. I've recently opened up a few issues to try and address that, but if anything comes to your mind, we would love your feedback :)

@hobofan
Copy link
Member Author

hobofan commented Feb 4, 2016

This was changed a bit in #42. I forgot that a glob import of the root module would also import all the modules in it, some of which have names prone to colission (e.g. framework, plugin), especially with our plugins. This is now handled via a "prelude" module.

homu added a commit that referenced this pull request Feb 4, 2016
refactor/export: handle import via prelude module [SKIP_CHANGELOG]

REFERENCES #40
@hobofan hobofan deleted the feat/exports branch February 22, 2016 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants