Containers
ikod
igor.khasilev at gmail.com
Thu Sep 2 07:14:13 UTC 2021
On Tuesday, 31 August 2021 at 17:21:02 UTC, deadalnix wrote:
> I want to start working on a container library. Interestingly
> enough, I don't think we have what we need on that front.
> Now onto the design:
> - Value types. It is very easy to turn a value into a
> reference type, not so much the other way around. reference
> type also come with a bag of edges cases, like the collection
> being null vs empty, that cause confusion and problems in
> practice.
My collections library[1] @safety inherited from the stored data
types. Any data access methods that returns reference marked with
'@system', so you can't use it easily in @safe code.
> I have a good idea how to solve all these problems. I have no
> idea how to solve the type qualifier one. I need help.
You didn't mention iterator stability.
[1] https://github.com/ikod/ikod-containers
More information about the Digitalmars-d
mailing list