3 ms·
That's because it's not a for loop. Maybe the problem is that it's inconsistently named. I like for/yield because it reminds me of do-notation in Haskell, and
by the_af 12y ago
That's because it's not a for loop. Maybe the problem is that it's inconsistently named.
I like for/yield because it reminds me of do-notation in Haskell, and it's used for a similar purpose.
- jghn 12y agoI agree that it's confusingly named, what I meant was that I disagree w/ those colleagues who avoid it like the plague because of the confusing name. I feel like it's one of those things that seems weird the first time you see it but idioms are idioms.