ruby-changes:59707
From: Yusuke <ko1@a...>
Date: Wed, 15 Jan 2020 12:44:24 +0900 (JST)
Subject: [ruby-changes:59707] 815807d2ab (master): NEWS.md: mention "Freeze Regexp literals" [Feature #8948]
https://git.ruby-lang.org/ruby.git/commit/?id=815807d2ab From 815807d2ab9e87b5543d6837234952fd6cd481a3 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> Date: Wed, 15 Jan 2020 12:43:49 +0900 Subject: NEWS.md: mention "Freeze Regexp literals" [Feature #8948] diff --git a/NEWS.md b/NEWS.md index 0bc98be..6f8e8a0 100644 --- a/NEWS.md +++ b/NEWS.md @@ -26,6 +26,12 @@ Hash:: https://github.com/ruby/ruby/blob/trunk/NEWS.md#L26 ### Compatibility issues (excluding feature bug fixes) +* Regexp literals are frozen [Feature #8948] [Feature #16377] + +``` +/foo/.frozen? #=> true +``` + ### Stdlib compatibility issues (excluding feature bug fixes) ### C API updates -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/