diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-26 07:55:07 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-26 07:55:07 +0000 |
commit | ebff9dc10e6e72239c23e50acc7d3cbfdc659e7a (patch) | |
tree | 26182851eb992cc67916e9e9ace053e2aaac5cc2 /NEWS | |
parent | f7e94df0d66aff47745d189ab5a7858a92233d57 (diff) | |
download | ruby-ebff9dc10e6e72239c23e50acc7d3cbfdc659e7a.tar.gz |
object.c: Deprecate Object#=~ and add NilClass#=~`
Object#=~ always returns nil. This behavior is not only unuseful but
also troublesome because it may hide a type error.
This change deprecates Object#=~. For compatibility, NilClass#=~ is
newly introduced. [Feature #15231]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -217,6 +217,12 @@ sufficient information, see the ChangeLog file or Redmine * NameError.new accepts +:receiver+ option to set receiver in Ruby code. [Feature #14313] +[NilClass] + + [New methods] + + * NilClass#=~ is added for compatibility. [Feature #15231] + [NoMethodError] [New options] @@ -447,6 +453,10 @@ sufficient information, see the ChangeLog file or Redmine File.readlines do not invoke external commands even if the path starts with the pipe character <code>'|'</code>. [Feature #14245] +[Object] + + * Object#=~ is deprecated. [Feature #15231] + === Stdlib compatibility issues (excluding feature bug fixes) * These standard libraries have been promoted to default gems. |