On 12/7/2014 2:58 PM, bearophile wrote:
When C++ programmers say that D-style ranges can't do everything C++ iterators can do, they seem to miss that sometimes it's a good idea to adopt a simpler language feature, that doesn't cover 100% usages, if it covers 80-90% of the cases, and has a simpler syntax, and simpler semantics to understand for the programmer.
I agree, but it's hard to find that sweet spot. I think Java definitely went too far, and Go went too far for my taste.
(The comment above is not about DIP69).
Yes, it is :-)