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

Chapter 2: Functions, Confusing Grammar #1697

Open
brandedcow opened this issue Sep 19, 2020 · 3 comments
Open

Chapter 2: Functions, Confusing Grammar #1697

brandedcow opened this issue Sep 19, 2020 · 3 comments
Labels

Comments

@brandedcow
Copy link

Last sentence in the 7th paragraph is phrased in a confusing way:

Not all languages treat functions as values, but it's essential for a language to support the functional programming pattern, as JS does.

Some suggested alternatives:

  • Not all languages treat functions as values, but it's essential for a language that supports the functional programming pattern, as JS does.
  • Not all languages treat functions as values, but it is essential for languages that support the functional programming pattern, like JS.

Edition: 2nd

Book Title: YDKJSY

Chapter: 2

Section Title: Functions

Problem: Grammar

@getify
Copy link
Owner

getify commented Sep 19, 2020

If it read "Not all languages treat functions as values, but that's essential..." would it read clearer to you?

@brandedcow
Copy link
Author

Yea, that would work, something like:

Not all languages treat functions as values, but that's essential to support the functional programming pattern, as JS does.

@getify
Copy link
Owner

getify commented Sep 20, 2020

OK, it's a minor nit, which I don't typically indulge (especially after a book has been published for almost 9 months). But I can see where there's a little confusion, so I will keep this issue open for if/when I do a future errata update.

@getify getify added the errata label Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants