-
Notifications
You must be signed in to change notification settings - Fork 50
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
Add a design topic page on lazy vs. eager implementations #708
Conversation
Follow-up to data-apisgh-652, which added notes to the specifications for `__bool__` & co on this topic.
d0726ce
to
ca4cfca
Compare
@seberg had one comment that is addressed in the second comment: point out that there is no built-in control flow beyond |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Three approvals and comments are addressed, so I'll go ahead and merge this. Thanks all! |
On a more philosophical note: what should an array consuming library do to deal with these two variants of behaviour? There are two options that come to mind straight away: (1) state in your docs that of all Array API compliant array producing libraries you only support X, Y and Z (because they don't raise) or (2) add Not sure if this PR is the best place to discuss this, but I started typing just before Ralf merged it, so will post here. Maybe an issue (with a follow up PR) is a better place? |
I think it's in practice a non-issue:
|
Follow-up to gh-652, which added notes to the specifications for
__bool__
& co on this topic.