Rant after trying Rust a bit
Enamex via Digitalmars-d
digitalmars-d at puremagic.com
Mon Aug 3 00:41:01 PDT 2015
On Friday, 31 July 2015 at 09:37:10 UTC, Jonathan M Davis wrote:
> On Friday, 31 July 2015 at 04:47:20 UTC, Enamex wrote:
>> Right now docs say that `delete` is getting deprecated but
>> using it on DMD .067.1 gives no warnings.
>
> There are no warnings because it hasn't actually been
> deprecated yet.
> [...]
> - Jonathan M Davis
GC and memory management in general are inadequately documented.
There're doc-pages and answers on SO and discussions on the forum
about stuff that (coming from C++) should be so basic, like how
to allocate an instance of a struct on the heap (GC'ed or
otherwise) or how to allocate a class on non-managed heap (still
don't get how `Unique!` works; does it even register with the GC?
How to deep-copy/not-move its contents into another variable?),
or on the stack, for that matter (there's `scoped!` but docs
again are confusing. It's somehow stack-allocated but can't be
copied?).
Eventually deprecating it while leaving it now without any
warnings (though the docs warn; offer no replacement) seems like
it'd be more trouble than it's worth down the line, since it's
not a feature addition or even full deprecation but -AFAIU- a
replacement of semantics for identical syntax.
More information about the Digitalmars-d
mailing list