11

I haven't used a traditional for-loop for ages. Foreach and Linq expressions have me spoilt.

Comments
  • 3
    I regret nothing
  • 4
    Yeah me too. When I actually need them, I feel like I'm writing low level language code.
  • 0
    i am disappointed they lack a break condition, totally neglecting syntax usecases...
  • 0
    That’s a good thing. Swift did even remove the classical for loop from the language.
    In case one needs to iterate over integers, there is always a more expressive way using ranges:
    for i in 0..<100 { }
  • 0
    @erroronline1@erroronline1 break bad
  • 0
    Sometimes I find myself needing to do a special case on the last loop iteration, which means the classic for loop is called for.

    But that's rare.
  • 0
    I use it for image processing pixel by pixel
Add Comment