Skip to content

Commit c68a1c3

Browse files
committed
[DOC] [Feature #20925] Add leading logical to NEWS
1 parent aaa9c19 commit c68a1c3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

NEWS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@ Note that each entry is kept to a minimum, see links for details.
1010
* `*nil` no longer calls `nil.to_a`, similar to how `**nil` does
1111
not call `nil.to_hash`. [[Feature #21047]]
1212

13+
* Logical binary operators (`||`, `&&`, `and` and `or`) at the
14+
beginning of a line continue the previous line, like fluent dot.
15+
The following two code are equal:
16+
17+
```ruby
18+
if condition1
19+
&& condition2
20+
...
21+
end
22+
```
23+
24+
```ruby
25+
if condition1 && condition2
26+
...
27+
end
28+
```
29+
30+
[[Feature #20925]]
31+
1332
## Core classes updates
1433

1534
Note: We're only listing outstanding class updates.
@@ -285,6 +304,7 @@ A lot of work has gone into making Ractors more stable, performant, and usable.
285304
[Feature #19908]: https://bugs.ruby-lang.org/issues/19908
286305
[Feature #20610]: https://bugs.ruby-lang.org/issues/20610
287306
[Feature #20724]: https://bugs.ruby-lang.org/issues/20724
307+
[Feature #20925]: https://bugs.ruby-lang.org/issues/20925
288308
[Feature #21047]: https://bugs.ruby-lang.org/issues/21047
289309
[Bug #21049]: https://bugs.ruby-lang.org/issues/21049
290310
[Feature #21166]: https://bugs.ruby-lang.org/issues/21166

0 commit comments

Comments
 (0)