OT: WWDC 2021, ARC in Swift: Basics and beyond
Ola Fosheim Grøstad
ola.fosheim.grostad at gmail.com
Sat Jun 12 17:55:46 UTC 2021
On Saturday, 12 June 2021 at 16:56:54 UTC, IGotD- wrote:
> Also, weak references means that we now have manual memory
> management again and if not used properly then the program will
> leak memory. Automatic memory management is no longer automatic
> with weak pointers.
All programmers should create a model before they program. You
only need to use weak-references if you pull down a datastructure
in a disorderly fashion.
> If D is going to implement ARC, then I suggest as automatic as
> possible with cycle detection.
Which basically is combining RC and tracing GC like Python.
Then you might as well just use GC.
More information about the Digitalmars-d
mailing list