Skip to content

Commit 997f248

Browse files
committed
Advent of Changelog: Day 14
1 parent bf77067 commit 997f248

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

_src/3.3.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,11 @@ A new "weak map" concept implementation. Unlike `ObjectSpace::WeakMap`, it compa
286286

287287
### `Process.warmup`
288288

289-
* **Reason:**
289+
A method to call when a long-running application finalized its loading, and before the regular work is started. TODO: forks?
290+
290291
* **Discussion:** [Feature #18885]
291292
* **Documentation:** [Process.warmup](https://docs.ruby-lang.org/en/master/Process.html#method-c-warmup)
292-
* **Code:**
293-
* **Notes:**
293+
* **Notes:** Hardly something can be explained or showcased here better than the justification discussion linked above and the method docs are doing it.
294294

295295
### `Process::Status#&` and `#>>` are deprecated
296296

@@ -354,6 +354,8 @@ The low-level string manipulation method now allows to provide a coordinates of
354354
* **Documentation:** [String#bytesplice](https://docs.ruby-lang.org/en/master/String.html#method-i-bytesplice)
355355
* **Code:**
356356
```ruby
357+
# TODO: Write real working code!
358+
357359
# Base usage
358360
'foo'.byteplice(1..2, 'bar', 0..1)
359361
# The receiver is modified
@@ -421,8 +423,7 @@ Allows to trace when some exception was `rescue`'d in the code of interest.
421423
lambda(&:to_s) #=> works
422424
lambda(&method(:puts)) #=> works
423425
```
424-
* **Notes:**
425-
* The discussion was once [started](https://bugs.ruby-lang.org/issues/15973) from the proposal to make `lambda` change "lambiness" of a passed block, but it raises multiple issues (changing the block semantics mid-program is just one of them). In general, `lambda` as a _method_ is considered legacy, inferior to the `-> { }` lambda literal syntax, exactly due to problems like this: it looks like a regular method that receives a block, and therefore should be able accept _any_ block, but in fact it is "special" method. So in 3.0, there was a warning about `lambda(&proc_instance)`, and since 3.3, the warning finally turned into an error.
426+
* **Notes:** The discussion was once [started](https://bugs.ruby-lang.org/issues/15973) from the proposal to make `lambda` change "lambiness" of a passed block, but it raises multiple issues (changing the block semantics mid-program is just one of them). In general, `lambda` as a _method_ is considered legacy, inferior to the `-> { }` lambda literal syntax, exactly due to problems like this: it looks like a regular method that receives a block, and therefore should be able accept _any_ block, but in fact it is "special" method. So in 3.0, there was a warning about `lambda(&proc_instance)`, and since 3.3, the warning finally turned into an error.
426427

427428
### Deprecate subprocess creation with method dedicated to files
428429

@@ -519,7 +520,7 @@ Terminates the Fiber by sending an exception inside it.
519520
* **Documentation:** [Fiber#kill](https://docs.ruby-lang.org/en/master/Fiber.html#method-i-kill)
520521
* **Code:**
521522
```ruby
522-
TODO: various behaviors
523+
# TODO: base behaviors & edge cases!
523524
524525
# Semi-realistic usage example:
525526
reader = Fiber.new do
@@ -539,14 +540,6 @@ Terminates the Fiber by sending an exception inside it.
539540
```
540541
* **Notes:**
541542
542-
### `Encoding#replicate` is removed
543-
544-
* **Reason:**
545-
* **Discussion:** [Feature #18949]
546-
* **Documentation:** —
547-
* **Code:**
548-
* **Notes:**
549-
550543
### `Range#overlap?`
551544
552545
Checks for overlapping of two ranges.

0 commit comments

Comments
 (0)