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

Remove parameters from (future) .return(…) method #14

Open
parzhitsky opened this issue Sep 18, 2022 · 1 comment
Open

Remove parameters from (future) .return(…) method #14

parzhitsky opened this issue Sep 18, 2022 · 1 comment
Labels
Change: major [Issue / PR] describes a breaking change of any kind Domain: main [Issue / PR] describes change in the functionality, its optimization Pending: blocked [Issue / PR] cannot be addressed until another issue is resolved Priority: medium [Issue / PR] should be addressed without delay Type: bug [Issue / PR] addresses malfunction

Comments

@parzhitsky
Copy link
Member

Protocol-compliant implementation assumes .return(…) method having a parameter, that's basically passed through as the return value of the method's call. Since xrange is a number iterator, it is designed to return "nothing" (i.e., undefined) after the iterated range is finished (the current NaN is temporary as per parzh/xrange#50), which means that the returned value of .return(…) is always an implicit undefined, and it doesn't depend on any inputs.

@parzhitsky parzhitsky added Change: major [Issue / PR] describes a breaking change of any kind Domain: main [Issue / PR] describes change in the functionality, its optimization Pending: blocked [Issue / PR] cannot be addressed until another issue is resolved Priority: medium [Issue / PR] should be addressed without delay Type: bug [Issue / PR] addresses malfunction labels Sep 18, 2022
@parzhitsky
Copy link
Member Author

Blocked by #13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Change: major [Issue / PR] describes a breaking change of any kind Domain: main [Issue / PR] describes change in the functionality, its optimization Pending: blocked [Issue / PR] cannot be addressed until another issue is resolved Priority: medium [Issue / PR] should be addressed without delay Type: bug [Issue / PR] addresses malfunction
Projects
None yet
Development

No branches or pull requests

1 participant