[Issue 11949] Warning and later deprecation message for usage of delete

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Jan 20 23:35:17 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11949


monarchdodra at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |monarchdodra at gmail.com


--- Comment #10 from monarchdodra at gmail.com 2014-01-20 23:34:54 PST ---
(In reply to comment #9)
> There really is no question that delete is going to be removed. It's been
> discussed a number of times before, and the decision was most definitely that
> it's going away. The same functionality can be achieved through library
> functions (e.g. GC.malloc or C's malloc plus emplace and GC.free or C's free),
> so we don't need it in the language itself in order to get the functionality,
> and having it in the language encourages its use, when its use should be
> discouraged (the functionality should still be there for those who really
> needed, but it shouldn't be in your average D program). Andrei in particular
> feels very strongly that delete has no business in the core language. If
> anything, it should have been removed long since. AFAIK, the only reason that
> it's still around is that none of the compiler devs have gotten around to
> removing it.
> 
> The best that anyone who really wants delete to stay is going to get is a delay
> in its removal. And such a delay would just increase the amount of code that
> breaks when it happens. So, it's in our best interest to deprecate it and put
> it on the path to removal ASAP rather than arguing over what's already been
> decided.

Seriously, why isn't it the damn thing deprecated already? I got into D about 2
years ago, and already, there were people saying to not use it, because it's
going away.

If we decide something goes, it gets marked as deprecated. If it was an
important feature, it stays deprecated for a long time. Saying something will
be removed, but keeping it around as is makes no sense to me.

It stays or it goes. Preferably goes.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list