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

Some assert in algorithm description can not be interpreted as a condition. #178

Closed
nisiyama opened this Issue Nov 15, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@nisiyama

nisiyama commented Nov 15, 2015

[JP22] Foe example, step 7 of “22.1.2.1 Array.from(items [, mapfn [, thisArg ]])” is described as “Assert: items is not an Iterable so assume it is an array-like object.”. This assertion can not be interpreted as a condition.

@ljharb

This comment has been minimized.

Show comment
Hide comment
@ljharb

ljharb Nov 15, 2015

Member

The assertion there is "items is not an iterable", "assume it is an array-like object" is more like an explanatory note - but I agree this is confusingly worded.

Member

ljharb commented Nov 15, 2015

The assertion there is "items is not an iterable", "assume it is an array-like object" is more like an explanatory note - but I agree this is confusingly worded.

@bterlson

This comment has been minimized.

Show comment
Hide comment
@bterlson

bterlson Jan 14, 2016

Member

Asserts are simply used to clarify algorithms. One could argue for these to be notes instead of asserts. I'll change that for the two instances of "items is not an Iterable". Feel free to file bugs for any remaining issues.

Member

bterlson commented Jan 14, 2016

Asserts are simply used to clarify algorithms. One could argue for these to be notes instead of asserts. I'll change that for the two instances of "items is not an Iterable". Feel free to file bugs for any remaining issues.

@bterlson bterlson closed this in 731adfb Jan 14, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment