Ruby 2.6 Endless Range

March 8, 2019

For a today I learned moment I ran into the new endless range feature in ruby 2.6 by coming across some code that triggered this error message: RangeError (cannot get the last element of endless range) The code that was updated to the latest ruby 2.6 release had a dynamic range that was pulling fields from a database and doing something like this: ... Read more

mtchavez All rights reserved.