diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-06 03:39:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-06 03:39:23 +0000 |
commit | 837babd56459aafc1232a12fbfa783025d619b98 (patch) | |
tree | 72698c46f54d3616d58b62dd2ebb14ec90147a9e /NEWS | |
parent | dfa75017bea479c829db9f967509caa95411361e (diff) | |
download | ruby-837babd56459aafc1232a12fbfa783025d619b98.tar.gz |
change DOTQ
* defs/id.def (token_ops), parse.y (parser_yylex): change DOTQ
from ".?" to "&.". [ruby-core:71363] [Feature #11537]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -20,17 +20,17 @@ with all sufficient information, see the ChangeLog file. * safe navigation operator: - * new method call syntax, `object.?foo', method #foo is called on + * new method call syntax, `object&.foo', method #foo is called on `object' if it is not nil. this is similar to `try!' in Active Support, except: * method name is syntactically required obj.try! {} # valid - obj.? {} # syntax error + obj&. {} # syntax error * arguments are evaluated only if a call is made: obj.try!(:foo, bar()) # bar() is always evaluated - obj.?foo(bar()) # bar() is conditionally evaluated + obj&.foo(bar()) # bar() is conditionally evaluated * attribute assignment is valid - obj.?attr += 1 + obj&.attr += 1 === Core classes updates (outstanding ones only) |