Skip to content

Comments

update export and change to map iteration#9

Closed
gkatsev wants to merge 2 commits intoacdlite:masterfrom
gkatsev:es6-changes
Closed

update export and change to map iteration#9
gkatsev wants to merge 2 commits intoacdlite:masterfrom
gkatsev:es6-changes

Conversation

@gkatsev
Copy link

@gkatsev gkatsev commented Sep 1, 2015

I believe this way of handling the exports is better because it keeps it all within babel and doesn't leak the underlying module system into the code.
As for not using array comprehensions, I think that it's not quite necessary and makes the versions of node that this works on wider as it doesn't require the Symbol polyfill. In addition, it's probably easier to understand a Array#map than an array comprehension.

Array iterations is a high level concept that requires the use of
Symbols. Symbols aren't avaiable everywhere and regular maps are.
@gkatsev gkatsev mentioned this pull request Sep 1, 2015
@gkatsev gkatsev closed this Jan 4, 2016
@gkatsev gkatsev deleted the es6-changes branch January 4, 2016 22:21
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.

1 participant