Skip to content

Use arrow notation for FFI #27

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
wants to merge 2 commits into from
Closed

Conversation

milesfrain
Copy link
Contributor

I think it's safe to assume ES6 compatibility now.
Users may turn to Babel if necessary.

I think it's safe to assume ES6 compatibility now.
Users may turn to Babel if necessary.
exports.log = function (s) {
return function () {
console.log(s);
return {};
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return {} seems unnecessary, It's the same as returning undefined (which is what these console functions return anyway), and even if something else is returned, PS will ignore it.

@garyb
Copy link
Member

garyb commented May 4, 2020

👎 from me, there's no real reason to do this, and now people might have to think about Babel where before it just worked.

@hdgarrood
Copy link
Contributor

Agreed with @garyb. According to caniuse, 6% of people globally are using browsers which don’t support arrow functions; that’s too many to justify this, in my view.

@milesfrain milesfrain closed this May 4, 2020
@milesfrain milesfrain deleted the es6 branch May 7, 2020 15:19
@milesfrain
Copy link
Contributor Author

Found purescript/purescript#3714 to provide more background on the no-arrow decision.

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.

3 participants