Comment by gbuk2013
6 hours ago
It is a specialised instrument but a useful one: batch processing and query pagination are first class use cases for generators that can really simplify business logic code. Stream processing is another and in fact Node.js streams have had a generator API for several releases now.
No comments yet
Contribute on Hacker News ↗