Project

General

Profile

Feature #12574

Remove TRUE, FALSE, and NIL

Added by shugo (Shugo Maeda) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:76318]

Description

I believe TRUE, FALSE, and NIL are no longer used.
Why not remove them?

Associated revisions

Revision 55824
Added by nobu (Nobuyoshi Nakada) about 1 year ago

deprecate TRUE,FALSE,NIL

  • object.c (InitVM_Object): deprecate toplevel constants TRUE, FALSE, and NIL. [Feature #12574]

Revision 55824
Added by nobu (Nobuyoshi Nakada) about 1 year ago

deprecate TRUE,FALSE,NIL

  • object.c (InitVM_Object): deprecate toplevel constants TRUE, FALSE, and NIL. [Feature #12574]

History

#1 [ruby-core:76321] Updated by nobu (Nobuyoshi Nakada) about 1 year ago

Deprecate them first?

#2 [ruby-core:76325] Updated by shugo (Shugo Maeda) about 1 year ago

Nobuyoshi Nakada wrote:

Deprecate them first?

Sounds reasonable.

I found that tool/mkconfig.rb uses them....

#3 [ruby-core:76427] Updated by matz (Yukihiro Matsumoto) about 1 year ago

You have to wait until Ruby 3.0 at least.
I'd agree to remove TRUE, FALSE, NIL first.

Matz.

#4 [ruby-core:76587] Updated by shugo (Shugo Maeda) about 1 year ago

  • Assignee set to matz (Yukihiro Matsumoto)
  • Status changed from Open to Assigned

Yukihiro Matsumoto wrote:

You have to wait until Ruby 3.0 at least.
I'd agree to remove TRUE, FALSE, NIL first.

Do you mean deprecating them first in 2.4?

#5 Updated by nobu (Nobuyoshi Nakada) about 1 year ago

  • Status changed from Assigned to Closed

Applied in changeset r55824.


deprecate TRUE,FALSE,NIL

  • object.c (InitVM_Object): deprecate toplevel constants TRUE, FALSE, and NIL. [Feature #12574]

Also available in: Atom PDF