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

Harder to learn FP basics with blocks #32

Open
baron816 opened this issue Jan 14, 2018 · 0 comments
Open

Harder to learn FP basics with blocks #32

baron816 opened this issue Jan 14, 2018 · 0 comments

Comments

@baron816
Copy link

I started to learn how to code with Ruby, which heavily uses this type of syntax, and I really didn't understand how blocks worked until I started passing functions as arguments to other functions in JavaScript. It's just so much clearer and easier to reason about when it's explicit and you don't have this other weird thing that's not referred to as a function being passed to a function.

Blocks are just too much magic that obscure the simple thing that's really going on. With this, we're just eliminating a few more characters--stuff that's really easy to auto complete with a text editor--at the cost of readability.

I'm not a fan of the arrow function to begin with. The JavaScript function is what JavaScript does best, and it's probably the one thing that makes it fun and interesting to use. I really don't like changing it to mimic languages without first class functions.

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

1 participant