Comment by corysama Comment by corysama 2 months ago 1 reply Copy Link View on Hacker News I made a toy implementation of D’s ranges in C++ and it was very fun and educational :)
Copy Link WalterBright 2 months ago Collapse Comment - C++'s ranges came from D, but C++ decided to construct ranges from a (begin, end) pair, which is not as good as D's design. D's ranges are constructed from a (pointer,length) pair. Reply View | 0 replies
C++'s ranges came from D, but C++ decided to construct ranges from a (begin, end) pair, which is not as good as D's design. D's ranges are constructed from a (pointer,length) pair.