dlang / project-ideas

Collection of impactful projects in the D ecosystem
36 stars 12 forks source link

ARC as default memory managerment! #70

Closed zoujiaqing closed 4 years ago

zoujiaqing commented 4 years ago

Like Swift, Objective-C and Nim:-)

https://docs.swift.org/swift-book/LanguageGuide/AutomaticReferenceCounting.html

Geod24 commented 4 years ago

I don't think that is an issue fit for this. It's not something that is widely agreed on, nor something that has an obvious route to it. Something that is widely agreed on (but not with an obvious route either) is issue #27 , on which you commented with the same link. So closing as duplicate.

wilzbach commented 4 years ago

Nim allows the user to choose the memory management. In theory, the same could be done in D as well (an optional flag to the compiler that adds RC hooks instead of the GC ones). I don't think we should outright reject this idea.

zoujiaqing commented 4 years ago

Thanks @wilzbach