On 11 May 2014 17:52, Benjamin Thaut via Digitalmars-d <digitalmars-d@puremagic.com> wrote: > Am 06.05.2014 05:40, schrieb Manu via Digitalmars-d: > >> I support the notion that if the GC isn't removed as a foundational >> feature of D, then destructors should probably be removed from D. >> >> That said, I really want my destructors, and would be very upset to >> see them go. So... ARC? >> > > I think ARC could work, but should be extended with some sort of ownership > notation. Often a block of memory (e.g. an array of data) is exclusivly > owned by a single object. So it would be absolutly uneccessary to reference > count that block of memory. Instead I would want something like Rust has, > borrowed pointers. (We actually already have that, "scope" but its not > defined nor implemented for anything but delegates)
Indeed, I also imagine that implementation of 'scope' would allow for a really decent ARC experience. D already has some advantages over other languages, but that one would be big.