News for hackers. Stuff that matters.
Re:How to Use a Generator Function as a Constructor by slikts on Sunday May 15, 2016 @10:32AM (#11701031)
Just, why… Pass in a parameter if you need to set the state, no need to mess with the context.
Re:How to Use a Generator Function as a Constructor by jaceju on Tuesday May 10, 2016 @10:48PM (#11672327)
Is 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 by gotofritz on Wednesday May 11, 2016 @04:24AM (#11673491)
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 by geirman on Thursday May 12, 2016 @12:55AM (#11681402)
indeed, why would anyone ever want or need to do this?