DIP 1025--Dynamic Arrays Only Shrink, Never Grow--Community Review Round 1

Robert Schadek rschadek at symmetryinvestments.com
Tue Nov 12 11:46:30 UTC 2019


On Tuesday, 12 November 2019 at 10:37:44 UTC, Nicholas Wilson 
wrote:
> (You mean moot point)
yes
>
> Thats what containers are for, to encapsulate the inherent 
> unsafety and expose a safe interface.
Okay, from where I'm standing that sounds like the problem is 
with malloc/slicing
malloced memory, and not so much the GC.
On the other hand, the more functional my D becomes, the less I 
feel the need
for containers at all.

> encapsulating safe access to members with locks/atomics/etc.
>
> [1]:https://github.com/dlang/DIPs/blob/master/DIPs/DIP1024.md

Thank you, I'll have another read.
Sounds like this whole @safe-borrowing-rc needs a top down design 
DIP to
understand the complete context.




More information about the Digitalmars-d mailing list