You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/news/_posts/2018-12-15-ruby-2-6-0-rc2-released.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ Stay tuned for the new age of Ruby's performance.
36
36
Ruby 2.6 introduces the `RubyVM::AbstractSyntaxTree` module.
37
37
38
38
This module has a `parse` method which parses Ruby code from a given string and returns AST (Abstract Syntax Tree) nodes, and a `parse_file` method which parses Ruby code from a given file and returns AST nodes.
39
-
The `RubyVM::AbstractSyntaxTree::Node` class is also introduced. You can get location information and children nodes from `Node` objects. This feature is experimental. Compatibility of the structure of AST nodes are not guaranteed.
39
+
The `RubyVM::AbstractSyntaxTree::Node` class is also introduced. You can get location information and children nodes from `Node` objects. This feature is experimental. Compatibility of the structure of AST nodes is not guaranteed.
40
40
41
41
## New Features
42
42
@@ -80,6 +80,7 @@ The `RubyVM::AbstractSyntaxTree::Node` class is also introduced. You can get loc
80
80
* Speedup `block.call` where `block` is passed block parameter. [[Feature #14330]](https://bugs.ruby-lang.org/issues/14330)
Additionally, Ruby 2.6 improves the performance of passed block calling.
84
85
With micro-benchmark we can observe x2.6 improvement.
85
86
@@ -92,7 +93,7 @@ The `RubyVM::AbstractSyntaxTree::Node` class is also introduced. You can get loc
92
93
93
94
## Other notable changes since 2.5
94
95
95
-
*`$SAFE` is a process global state and we can set it to `0` again. [[Feature #14250]](https://bugs.ruby-lang.org/issues/14250)
96
+
*`$SAFE`now is a process global state and can be set to `0` again. [[Feature #14250]](https://bugs.ruby-lang.org/issues/14250)
96
97
97
98
* Passing `safe_level` to `ERB.new` is deprecated. `trim_mode` and `eoutvar` arguments are changed to keyword arguments. [[Feature #14256]](https://bugs.ruby-lang.org/issues/14256)
0 commit comments