1
0
Fork 0
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:
Jeremy Evans 2019-07-19 11:23:00 -07:00
parent 7e2677675d
commit ceeb1535dd

View file

@ -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