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
@ -454,11 +454,6 @@ in this section:
|
|||||||
yield self
|
yield self
|
||||||
end
|
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
|
== Exception Handling
|
||||||
|
|
||||||
Methods have an implied exception handling block so you do not need to use
|
Methods have an implied exception handling block so you do not need to use
|
||||||
|
Loading…
x
Reference in New Issue
Block a user