You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Suggestion: make throw and return required fields for generators #21527
GeneratorsFunctions could theoretically throw an error at any time! In addition, they do always return something, even if it's undefined. Therefore, simply extending Iterator isn't specific enough.
So why not make throw and return required properties of Generator?
changed the title [-]Suggestion: make generators return a new type of class that extends Iterator[/-][+]Suggestion: make `throw` and `return` required fields for Generators[/+]on Feb 1, 2018
changed the title [-]Suggestion: make `throw` and `return` required fields for Generators[/-][+]Suggestion: make `throw` and `return` required fields for generators[/+]on Feb 1, 2018
Activity
[-]Suggestion: make generators return a new type of class that extends Iterator[/-][+]Suggestion: make `throw` and `return` required fields for Generators[/+][-]Suggestion: make `throw` and `return` required fields for Generators[/-][+]Suggestion: make `throw` and `return` required fields for generators[/+]