summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-06 03:39:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-06 03:39:23 +0000
commit837babd56459aafc1232a12fbfa783025d619b98 (patch)
tree72698c46f54d3616d58b62dd2ebb14ec90147a9e /NEWS
parentdfa75017bea479c829db9f967509caa95411361e (diff)
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--NEWS8
1 files changed, 4 insertions, 4 deletions
diff --git a/NEWS b/NEWS
index 0677663..cd3b548 100644
--- a/NEWS
+++ b/NEWS
@@ -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)