[#65451] [ruby-trunk - Feature #10333] [PATCH 3/1] optimize: "yoda literal" == string — ko1@...

Issue #10333 has been updated by Koichi Sasada.

9 messages 2014/10/07

[ruby-core:65530] [ruby-trunk - Feature #10342] Module#deprecate_constant

From: ruby-core@...
Date: 2014-10-08 17:27:44 UTC
List: ruby-core #65530
Issue #10342 has been updated by Marc-Andre Lafortune.


The same effect can already be achieved using `autoload`, right?

----------------------------------------
Feature #10342: Module#deprecate_constant
https://bugs.ruby-lang.org/issues/10342#change-49302

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Category: core
* Target version: current: 2.2.0
----------------------------------------
Proposal for `Module#deprecate_constant`, which marks constants referred by arguments as deprecated.

~~~ruby
class C
  FOO = 1
  deprecate_constant :FOO
end
C::FOO #=> warning: constant C::FOO is deprecated
~~~

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



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

In This Thread

Prev Next