Would the ownership model make D lang as complicated as Rust?

aberba karabutaworld at gmail.com
Sat Nov 14 12:00:32 UTC 2020

On Saturday, 14 November 2020 at 08:36:56 UTC, joe wrote:
> On Saturday, 14 November 2020 at 06:56:30 UTC, tsbockman wrote:
>> On Saturday, 14 November 2020 at 05:33:24 UTC, joe wrote:
>>> 2. Would there be GC still if we use the ownership model?
>> The garbage collector is not going away. For much (most?) 
>> user-space code, the benefits of GC far outweigh its down 
>> sides.
>> The ownership model is primarily intended to benefit soft 
>> real-time applications, such as games, audio playback, 
>> operating systems, or very high performance web servers. If 
>> you're not writing code like this which requires low and 
>> consistent latency, then you can and probably should just go 
>> on using the garbage collector.
> Can I replace the GC model with the ownership model?

Certain D features *few of them actually) are built with GC code 
so you can't swap them out. Unless there is a no-GC third-party 
alternative library you can plug in and use.

See https://dlang.org/blog/the-gc-series/

More information about the Digitalmars-d mailing list