Skip to content

export at the beginning #3

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

Closed
fanatid opened this issue Apr 17, 2016 · 2 comments
Closed

export at the beginning #3

fanatid opened this issue Apr 17, 2016 · 2 comments

Comments

@fanatid
Copy link

fanatid commented Apr 17, 2016

Sorry, it is not best place for this question, but

why you export from file in beginning instead at the end? (you did this two years ago mafintosh/objectstruct) It solves some kind of problem? It's more clear?

@mafintosh
Copy link
Collaborator

My style is continuously changing over time. I put exports in the beginning now so they are grouped with requires. I currently like that. I'm also influenced by the style of people I work with like @maxogden and @feross

@fanatid
Copy link
Author

fanatid commented Apr 17, 2016

@mafintosh thank you for the answer
I think it's a good reason (grouped with requires) for export in file beginning.

@fanatid fanatid closed this as completed Apr 17, 2016
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

No branches or pull requests

2 participants