for*
generator expressions
#505
Labels
proposal
Proposal or discussion about a significant language feature
for*
generator expressions
#505
We can make it easy for
for
to generate (yield
) values instead of accumulating an array and returning it, given that we're already wrapping in an IIFE.See jashkenas/coffeescript#5379 for this exact idea. I didn't think
for*
made sense in a CoffeeScript syntax, but it makes sense in Civet which inherits all of ECMAScript; I think it nicely pairs with the recently addedasync for
. I'm also inspired here by Janet'sgenerate
.The text was updated successfully, but these errors were encountered: