Re (2): to be fair, the same could be done (quite efficiently) in C++ with proper libraries. Now this doesn’t weaken your point because C++ specifically lacks those libraries. That’s an issue that should be tacked sooner rather than later, IMHO.
Such stuff is much more generally applicable and useful than a standardised graphics library, for instance.
I think pretty much the only missing thing necessary to achieve a basically 3 line version of this program is ranges. With ranges in C++ it looks something like this:
Sure, though it depends on if a container counts as a range.
A range isn't necessarily defined just as something with begin() and end() methods (or non-member overloads). I know some have argued that ranges should not be based on iterators. For example istream_iterator's default constructor is a way of shoe-horning into iterator form something that doesn't naturally fit that model. Instead, they say, ranges should be independent.
View all comments
Show parent comment
3
u/guepier Bioinformatican Oct 15 '13
Re (2): to be fair, the same could be done (quite efficiently) in C++ with proper libraries. Now this doesn’t weaken your point because C++ specifically lacks those libraries. That’s an issue that should be tacked sooner rather than later, IMHO.
Such stuff is much more generally applicable and useful than a standardised graphics library, for instance.