[ruby-core:70142] [Ruby trunk - Feature #11398] [Open] deprecate constants

From: nobu@...
Date: 2015-07-28 07:34:50 UTC
List: ruby-core #70142
Issue #11398 has been reported by Nobuyoshi Nakada.

----------------------------------------
Feature #11398: deprecate constants
https://bugs.ruby-lang.org/issues/11398

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Sometimes old constants are deprecated but still remained for backward compatibilities.
It is not noticed and will be kept forever, with no warnings, though.
So I propose a method `Module#deprecate_constant` to mark a constant obsolete and emit a warning message when it is referred. 

https://github.com/nobu/ruby/tree/Module%23deprecate_constant



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next