Hacker News new | ask | show | jobs
by Gesee 18 days ago
Refcounting only cause problem when using `ref` counted type, which is also discouraged most of the time when not necessary.
1 comments

Does it suffer from the same trap as Dlang, in that their GC is also optional, but you lose the many of the conveniences from the standard library if you forgo completely with it?
GC is optional in the sense "don't use `ref` types and there will be no GC" Value types (`object`) use mutable value semantics and scope based destructors, so there are safe without GC