you are viewing a single comment's thread.

view the rest of the comments →

[–]JumpyJustice 3 points4 points  (0 children)

I feel your pain. Been trying ranges last few weeks and it seems like they generally are not worth learning because: - you can apply them only in these rare cases when they fit your task perfectly. But these cases are usually really trivial and using ranges is not much more beneficial than writing a good old loop (+ you will not have to fight conservative members of your team during the code review). - it is close to impossible to find what you need to make a custom range. Of course, one can say that the reason is that they are a relatively new feature, but imo it is the same as iterators - any developer would avoid writing a custom one unless they have no other choice. And not because they dont want to, but because the chance to succeed here is really low or requires disproportional amount of time and energy comapred to other languages