Hacker News new | ask | show | jobs
by stkdump 2009 days ago
Why would you need a union?
1 comments

Write me some code that shows me how to compose iterator-based ranges with just 1 iterator's worth of space in each range.
It is not so clear to me what you mean. Maybe you can point to a better version (maybe what some other language does), and I can explain how I think the same can be done with C++20 ranges. I believe ranges are strictly more powerful than what other languages provide, and often they can be slimmer/more efficient for the common case.