mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove section on performance advantage of not using a block parameter [ci skip]
Improvements in Ruby 2.5 and 2.6 make this section no longer accurate.
This commit is contained in:
parent
7e2677675d
commit
ceeb1535dd
1 changed files with 0 additions and 5 deletions
|
@ -454,11 +454,6 @@ in this section:
|
|||
yield self
|
||||
end
|
||||
|
||||
There is also a performance benefit to using yield over a calling a block
|
||||
parameter. When a block argument is assigned to a variable a Proc object is
|
||||
created which holds the block. When using yield this Proc object is not
|
||||
created.
|
||||
|
||||
== Exception Handling
|
||||
|
||||
Methods have an implied exception handling block so you do not need to use
|
||||
|
|
Loading…
Add table
Reference in a new issue