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

joe jsjoesmith111111 at gmail.com
Sat Nov 14 08:36:56 UTC 2020


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?


More information about the Digitalmars-d mailing list