3 ms·
I elaborated that case in the most detail, but there are many other problems that generators solve mentioned in the blog post. Another very common one is gettin
by spion 9y ago
I elaborated that case in the most detail, but there are many other problems that generators solve mentioned in the blog post. Another very common one is getting the current user that initiated the request (or maybe their session), which you need to pass around to all your functions/classes.
What if you could simply `yield getCurrentUserSession` and the engine which ran the toplevel generator returned it back to you?
jhusein's compositional functions solved the syntax issue.