[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Deprecate vs. discourage

From: Ludovic Courtès
Subject: Deprecate vs. discourage
Date: Tue, 26 Jan 2010 23:15:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)


I think things like ‘uniform-vector-read’ should be discouraged rather
than deprecated, since it matches the definition in ‘discouraged.h’:

   A discouraged feature is one that shouldn't be used in new code
   since we have a better alternative now.  However, there is nothing
   wrong with using the old feature, so it is OK to continue to use

However, discouraged features currently don’t produce any sort of
warning.  I would suggest using the same technique as
‘build-aux/link-warning.h’ to issue a link-time warning.

What do you think?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]