This blog is part of our Ruby 2.6 series.
Ruby 2.6.0 was released on Dec 25, 2018.
If we use
begin..end block in Ruby 2.5,
it gives a warning.
This warning is present
as code inside
will never get executed
In Ruby 2.6 it will raise an exception if we use
changed warning into exception in Ruby 2.6.
Changes made in the commit are experimental.
The Chinese version of this blog is available