marijnh / Eloquent-JavaScript

The sources for the Eloquent JavaScript book
https://eloquentjavascript.net
3.01k stars 793 forks source link

Ch. 11: Asynchronous Bugs section: confusing parameter 'name' #473

Closed mediter closed 6 months ago

mediter commented 5 years ago

For function anyStorage(nest, source, name), the label used for the 3rd parameter name is confusing:

Although we could deduce it is the latter from the code samples that use this function, but one could not tell by looking at the function definition alone.

Suggestion function anyStorage(nest, source, key) or function anyStorage(nest, source, data-name)

marijnh commented 6 months ago

This chapter has been rewritten entirely in the 4th edition.