Post AojDYirm3ydNIhqMhk by [email protected] | |
More posts by [email protected] | |
Post #Aohbrl2qCGru8vi3gO by [email protected] | |
0 likes, 0 repeats | |
Why couldn't #golang have iterators without so much verbose code similar to… | |
Post #AohbrlDTYjNKfugYG8 by [email protected] | |
0 likes, 0 repeats | |
@iamwaseem Because #golang is a typed language. The type of `func X() {}` is `… | |
Post #AohbrlNkwVbBBnUlHc by [email protected] | |
0 likes, 1 repeats | |
@Merovius @iamwaseem that's the nice thing about js generators compared to … | |
Post #AohhDyNDoyY3cgefWy by [email protected] | |
0 likes, 0 repeats | |
@mattesilver @Merovius Generators in Python can also be type hinted. | |
Post #AohhDybOyFtIKfHzdI by [email protected] | |
0 likes, 1 repeats | |
@iamwaseem @Merovius but that doesn't change their functionality | |
Post #AojCxKoQX4dpz4RxfU by [email protected] | |
0 likes, 0 repeats | |
@mattesilver @Merovius yes. But that tells the function is a generator without … | |
Post #AojCxL8zId5X0q4NiS by [email protected] | |
0 likes, 1 repeats | |
@iamwaseem @Merovius What IDE can't tell a function is a generator without … | |
Post #AojDYirm3ydNIhqMhk by [email protected] | |
0 likes, 0 repeats | |
@mattesilver @Merovius You highlighted JS uses * in function definition for it … | |
Post #AojDYj3pLAH7u5TzUW by [email protected] | |
0 likes, 1 repeats | |
@iamwaseem @Merovius AFAIK * in JS _makes_ function a generator, just like pyth… |