Hacker News new | ask | show | jobs
by metaltyphoon 27 days ago
> std::range should stay where it is, and the new one be introduced as std::range/v2

Isn’t this what editions are for?

1 comments

Yes, but no, but also yes.

Editions are for language evolution. Evolving the std does fit the bill. Edition aware path resolution isn't a thing. It will likely be a thing starting with Edition 2027. Range is likely to be the first type to use this feature upcoming.

Which is why I always give library evolution as one example why editions don't solve everything as many people think they do.
Don't let perfect be the enemy of good enough. This is much better, IMO, than what many other languages do, including Go's modulename/v2 style.