How to Use a Generator Function as a Constructor
1–5 of 5 posts
Re: How to Use a Generator Function as a Constructor
#2Is there any example for real cases? I don't know the meaning of this workaround.
Re: How to Use a Generator Function as a Constructor
#3Is there any example for real cases? I don't know the meaning of this workaround.
Yes, I was going to ask the same. What is the point of this? What problem does it solve?
Re: How to Use a Generator Function as a Constructor
#4indeed, why would anyone ever want or need to do this?
Re: How to Use a Generator Function as a Constructor
#5Just, why… Pass in a parameter if you need to set the state, no need to mess with the context.