Skip to content

Latest commit

 

History

History
85 lines (50 loc) · 2.14 KB

NEWS

File metadata and controls

85 lines (50 loc) · 2.14 KB

# -*- rdoc -*-

NEWS for Ruby 2.7.0

This document is a list of user visible feature changes made between releases except for bug fixes.

Note that each entry is kept so brief that no reason behind or reference information is supplied with. For a full list of changes with all sufficient information, see the ChangeLog file or Redmine (e.g. https://bugs.ruby-lang.org/issues/$FEATURE_OR_BUG_NUMBER)

Changes since the 2.6.0 release

Language changes

  • Method reference operator, .: is introduced as an experimental feature. [Feature #12125] [Feature #13581]

  • Proc.new and proc with no block in a method called with a block is warned now.

  • lambda with no block in a method called with a block errs.

  • Non-Symbol keys in a keyword arguments hash was prohibited at 2.6.0, but now allowed again. [Bug #15658]

  • Numbered parameter as the default block parameter is introduced as an experimental feature. [Feature #4475]

Core classes updates (outstanding ones only)

Enumerable
New method
  • Added Enumerable#tally. [Feature #11076]

Enumerator
New method
  • Added Enumerator::Yielder#to_proc so that a Yielder object can be directly passed to another method as a block argument. [Feature #15618]

Regexp/String
  • Update Unicode version and Emoji version from 11.0.0 to 12.0.0. [Feature #15321]

Stdlib updates (outstanding ones only)

CSV
RSS

Compatibility issues (excluding feature bug fixes)

Stdlib compatibility issues (excluding feature bug fixes)

profile.rb, Profiler__
  • Removed from standard library. No one maintains it from Ruby 2.0.0.

C API updates

Implementation improvements

JIT
  • Default value of –jit-max-cache is changed from 1,000 to 100

  • Default value of –jit-min-calls is changed from 5 to 10,000

Miscellaneous changes