comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: Add Deprecated aspect to Ada 2020
Date: Mon, 21 Aug 2017 21:09:12 +0200
Date: 2017-08-21T21:09:12+02:00	[thread overview]
Message-ID: <vdGmB.643570$9t6.103644@fx31.am4> (raw)
In-Reply-To: <ona3ri$10rp$1@gioia.aioe.org>


Well.

Initially this is not a problem but i have quite often seen this 
requirement as libraries evolves over time. Its good to use to maintain 
backward compatibility while notifying the users that they should change 
their code prior to stepping version of that particular library.

/P



Den 2017-08-19 kl. 21:34, skrev Dmitry A. Kazakov:
> 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!
> 


  reply	other threads:[~2017-08-21 19:09 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
2017-08-21 19:09   ` Per Sandberg [this message]
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