-
Notifications
You must be signed in to change notification settings - Fork 46
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
Reserve asserts only for non-obvious things #455
Labels
Comments
zolkis
changed the title
FWIW, I'd reserve asserts only for non-obvious things, e.g. where a much earlier step in an algorithm has ensured that a number is non-zero, so a division by it is safe.
Reserve asserts only for non-obvious things
Aug 23, 2023
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Dec 19, 2023
* Update callers to use dfn autolinks (for type checking) * Remove assertion about builder argument (simplify) * Remove test/exception for name argument (not needed) For webmachinelearning#450 and webmachinelearning#455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Dec 19, 2023
* Use "for each key → value of ..." syntax * Drop asserts for types For webmachinelearning#450 and webmachinelearning#455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Dec 19, 2023
* Update callers to use dfn autolinks (for type checking) * Remove assertion about builder argument (simplify) * Remove test/exception for name argument (not needed) For webmachinelearning#450 and webmachinelearning#455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Dec 19, 2023
* Use "for each key → value of ..." syntax * Drop asserts for types For webmachinelearning#450 and webmachinelearning#455
FYI I have a branch ready for this, but #514 needs to merge first. |
#514 is now merged. |
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Jan 18, 2024
These don't improve readability of the spec. To keep this commit focused, it does not touch similar assertions for internal algorithms. (Also, convert one NOTE into an ISSUE since it represents pending spec work.) For webmachinelearning#455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Jan 18, 2024
Improve internal algorithm readability by including the type of parameters in the declaration of the algorithm, rather than as assertions. This commit just touches the algorithms with assertions. Other algorithms could be improved with parameter type declarations, but that'll be a follow-up. For webmachinelearning#455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Jan 21, 2024
These don't improve readability of the spec. To keep this commit focused, it does not touch similar assertions for internal algorithms. (Also, convert one NOTE into an ISSUE since it represents pending spec work.) For webmachinelearning#455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Jan 21, 2024
Improve internal algorithm readability by including the type of parameters in the declaration of the algorithm, rather than as assertions. This commit just touches the algorithms with assertions. Other algorithms could be improved with parameter type declarations, but that'll be a follow-up. For webmachinelearning#455
wchao1115
pushed a commit
that referenced
this issue
Jan 27, 2024
* Wording change: Drop arg type assertions for methods defined by WebIDL These don't improve readability of the spec. To keep this commit focused, it does not touch similar assertions for internal algorithms. (Also, convert one NOTE into an ISSUE since it represents pending spec work.) For #455 * Wording change: Convert algorithm type assertions into parameter types Improve internal algorithm readability by including the type of parameters in the declaration of the algorithm, rather than as assertions. This commit just touches the algorithms with assertions. Other algorithms could be improved with parameter type declarations, but that'll be a follow-up. For #455
inexorabletash
added a commit
to inexorabletash/webnn
that referenced
this issue
Jan 30, 2024
…achinelearning#518) * Wording change: Drop arg type assertions for methods defined by WebIDL These don't improve readability of the spec. To keep this commit focused, it does not touch similar assertions for internal algorithms. (Also, convert one NOTE into an ISSUE since it represents pending spec work.) For webmachinelearning#455 * Wording change: Convert algorithm type assertions into parameter types Improve internal algorithm readability by including the type of parameters in the declaration of the algorithm, rather than as assertions. This commit just touches the algorithms with assertions. Other algorithms could be improved with parameter type declarations, but that'll be a follow-up. For webmachinelearning#455
The remaining asserts are either:
... so I'm going to go ahead and close this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Originally posted by @inexorabletash in #446 (comment)
The text was updated successfully, but these errors were encountered: