summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS11
1 files changed, 11 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 800974eadd..8a2c7f5846 100644
--- a/NEWS
+++ b/NEWS
@@ -18,6 +18,17 @@ with all sufficient information, see the ChangeLog file.
* besides, --enable/--disable=frozen-string-literal options also have
been introduced.
+* safe navigation operator:
+
+ * new method call syntax, `object.?foo', method #foo is called on
+ `object' if it is not nil.
+ this is similar to `try!' in ActiveSupport, except for:
+ * method name is syntactically required
+ obj.try! {} # valid
+ obj.? {} # syntax error
+ * attribute assignment is valid
+ obj.?attr += 1
+
=== Core classes updates (outstanding ones only)
* ARGF