parent
207788466e
commit
e9fd34750f
11
NEWS.md
11
NEWS.md
@ -8,17 +8,16 @@ Note that each entry is kept to a minimum, see links for details.
|
|||||||
## Language changes
|
## Language changes
|
||||||
|
|
||||||
* String literals in files without a `frozen_string_literal` comment now behave
|
* String literals in files without a `frozen_string_literal` comment now behave
|
||||||
as if they were frozen. If they are mutated a deprecation warning is emited.
|
as if they were frozen. If they are mutated a deprecation warning is emitted.
|
||||||
These warnings can be enabled with `-W:deprecated` or by setting `Warning[:deprecated] = true`.
|
These warnings can be enabled with `-W:deprecated` or by setting `Warning[:deprecated] = true`.
|
||||||
To disable this change you can run Ruby with the `--disable-frozen-string-literal` command line
|
To disable this change, you can run Ruby with the `--disable-frozen-string-literal`
|
||||||
argument. [[Feature #20205]]
|
command line argument. [[Feature #20205]]
|
||||||
|
|
||||||
* `it` is added to reference a block parameter. [[Feature #18980]]
|
* `it` is added to reference a block parameter. [[Feature #18980]]
|
||||||
|
|
||||||
* Keyword splatting `nil` when calling methods is now supported.
|
* Keyword splatting `nil` when calling methods is now supported.
|
||||||
`**nil` is treated similar to `**{}`, passing no keywords,
|
`**nil` is treated similarly to `**{}`, passing no keywords,
|
||||||
and not calling any conversion methods.
|
and not calling any conversion methods. [[Bug #20064]]
|
||||||
[[Bug #20064]]
|
|
||||||
|
|
||||||
* Block passing is no longer allowed in index. [[Bug #19918]]
|
* Block passing is no longer allowed in index. [[Bug #19918]]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user