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

Expose Structure #11

Merged
merged 1 commit into from Dec 18, 2014
Merged

Expose Structure #11

merged 1 commit into from Dec 18, 2014

Conversation

dashed
Copy link
Contributor

@dashed dashed commented Dec 17, 2014

From #10 (comment).

I think var Structure = require('immstruct').Structure; is better than var Structure = require('immstruct/src/structure');.

@mikaelbr
Copy link
Member

The advantage of having

var Structure = require('immstruct/src/structure');

Or changing this to

var Structure = require('immstruct/structure');

is that you wouldn't have to load the "entire" immstruct code. It's not that big, but the concept of it. Especially for usage with browserify.

@dashed
Copy link
Contributor Author

dashed commented Dec 17, 2014

Good point. Hadn't thought of that. I think var Structure = require('immstruct/structure'); is much cleaner.

I rebased with alternative changes.

@mikaelbr
Copy link
Member

Good change!

mikaelbr added a commit that referenced this pull request Dec 18, 2014
Exposes structure as public API.
@mikaelbr mikaelbr merged commit 5760089 into omniscientjs:master Dec 18, 2014
@mikaelbr
Copy link
Member

Added documentation here: 889f7b2

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

2 participants