@safe, @maybe, @impure, etc decorators should work with generators
See original GitHub issueCurrently it is impossible to work with generator functions with @safe
and other decorators.
We need to fix that. Async generators are currently out of scope.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Read JavaScript Allongé, the "Six" Edition | Leanpub
JavaScript idioms like function combinators and decorators leverage JavaScript's power to make code easier to read, modify, debug and refactor. JavaScript ...
Read more >@babel/plugin-proposal-decorators | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >Piezoelectric Generators | PIEZO.COM
Generally, a piezo generator must move a specified amount of charge and supply ... Work is maximized when the charge moved permits one...
Read more >mobx/CHANGELOG.md at main - GitHub
All annotated props of non-plain object are non-configurable. Previously configurable. Observable object should now work more reliably in various (edge) cases.
Read more >Guidelines for Laser Safety and Hazard Assessment
Most laser devices will be dedicated systems, designed for a specific application. New applications will most probably center on the use of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
About the
@safe
, I think it’s the correct behavior! Because@safe
wraps the function with atry...except
, if the function executes correctly@safe
will return aSuccess
container containing ourIterator
otherwise it’ll return aFailure
container containing anException
.Yes, this should be something different.