You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***Notes:** Hardly something can be explained or showcased here better than the justification discussion linked above and the method docs are doing it.
294
294
295
295
### `Process::Status#&` and `#>>` are deprecated
296
296
@@ -354,6 +354,8 @@ The low-level string manipulation method now allows to provide a coordinates of
@@ -421,8 +423,7 @@ Allows to trace when some exception was `rescue`'d in the code of interest.
421
423
lambda(&:to_s) #=> works
422
424
lambda(&method(:puts)) #=> works
423
425
```
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.
426
427
427
428
### Deprecate subprocess creation with method dedicated to files
428
429
@@ -519,7 +520,7 @@ Terminates the Fiber by sending an exception inside it.
0 commit comments