News for hackers. Stuff that matters.
Re:Databricks Scala Style Guide by the_af on Tuesday March 17, 2015 @04:09PM (#9221016)
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.

Re:Databricks Scala Style Guide by jghn on Tuesday March 17, 2015 @04:11PM (#9221033)
I 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.