News for hackers. Stuff that matters.
Re:New Features in Ruby 2.4 by EdHominem on Thursday July 21, 2016 @12:27PM (#12137920)
puts "true" if []

An empty array is still an object, so tests to true. Similarly 0, etc.

The only false values are 'false', of course, and 'nil', the lack of anything.

Re:New Features in Ruby 2.4 by psyklic on Thursday July 21, 2016 @12:41PM (#12138066)
Good catch! If only other languages were as simple :D