[GSoC] Reference-Counted Data Structures for D
Jacob Carlborg
doob at me.com
Fri Jun 7 17:43:02 UTC 2019
On 2019-06-06 22:48, Les De Ridder wrote:
> I'd like to keep the PRs as small as possible, so reviews aren't too
> much work and don't slow down progress. Adding a range interface would
> add a considerable amount of code that, while trivial, still has to be
> properly documented, tested, and reviewed.
Fair enough.
> It's also not clear where a range interface should go.
It would go in the same file as the data structures. Why would it go
anywhere else?
> There is
> (currently) no `core.range`, so the range interface would have to be put
> in a companion module in Phobos, or it wouldn't be possible to properly
> implement and unit test it without moving parts of `std.range` to
> druntime.
There's "foreach", which is built-in, and the functions that make up the
range API, that is: front, popFront and empty (for an input range).
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list