comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Add Deprecated aspect to Ada 2020
Date: Sat, 19 Aug 2017 21:34:12 +0200
Date: 2017-08-19T21:34:12+02:00	[thread overview]
Message-ID: <ona3ri$10rp$1@gioia.aioe.org> (raw)
In-Reply-To: b8d215ba-3d49-403c-a534-27f4b8a8a00d@googlegroups.com

On 2017-08-19 20:52, Lucretia wrote:

> I'm sure plenty of people have libs where certain parts have been deprecated over time.

Yes. Gtk is full of this mess.

> It would be a nice addition to have an aspect to say this and emit a
> custom warning when it's used >
>     function A return B with
>       Deprecated => "Will be removed in version x.y.z, please use C instead.";

Why should anybody need to remove an interface function?

Or to put it differently. Let there be a reason why a call to some 
function is not desired. Then the reason must be spelled in the language 
terms. E.g. this:

    variable value is used before being initialized

and not this:

    initialization of this variable will be removed in the next version, 
don't use it ever!

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de

  parent reply	other threads:[~2017-08-19 19:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-19 18:52 Add Deprecated aspect to Ada 2020 Lucretia
2017-08-19 18:52 ` Simon Clubley
2017-08-19 18:54 ` Björn Lundin
2017-08-19 20:55   ` Jacob Sparre Andersen
2017-08-19 19:34 ` Dmitry A. Kazakov [this message]
2017-08-21 19:09   ` Per Sandberg
2017-08-21 19:34     ` Dmitry A. Kazakov
2017-08-22  5:47       ` J-P. Rosen
2017-08-22  7:38         ` Dmitry A. Kazakov
2017-08-22 19:32           ` Luke A. Guest
2017-08-22 20:04             ` Pascal Obry
2017-08-23  7:11             ` Dmitry A. Kazakov
2017-08-31  1:05       ` Randy Brukardt
2017-08-31 15:19         ` Lucretia
2017-09-01  0:13           ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox