3 ms·
A c++20 range is just a bounded container. instead of having to write, `(container.begin(), container.end())` for any function that uses iterators to bound itse
by mikeloomis 8y ago
A c++20 range is just a bounded container. instead of having to write, `(container.begin(), container.end())` for any function that uses iterators to bound itself, you just write `(container)` and it knows its a range.
The range function in python is similar only in name, the c++20 range concept is not a generator.
2. There is a coroutine feature branch, I believe developed by Gor Nishanov, https://github.com/GorNishanov https://github.com/GorNishanov. Also not related to c++20 ranges.
3. Eric Niebler used a single templated function. This is not anywhere close to template metaprogramming hell, and I think you should look into templates as once you learn about them they become way less intimidating. Also has nothing to do with c++20 ranges.
- amelius 8y agoI have yet to see a non-managed systems programming language which supports coroutines properly. Rust supports async/await, but it's not the same thing, as this comment illustrates: https://news.ycombinator.com/item?id=15121199 https://news.ycombinator.com/item?id=15121199
- mikeloomis 8y agoIt'll be after 20 for sure, we're still waiting for the executor TS for async networking to be able to come in.