Issue #5899 has been updated by matz (Yukihiro Matsumoto).

Status changed from Assigned to Feedback

I don't think changing "1 < b < 4" to "1 < b && b < 4" is that hard task.
I am not sure it's worth allowing confusing "false < 4".

Matz.

----------------------------------------
Feature #5899: chaining comparsions.
https://bugs.ruby-lang.org/issues/5899#change-25543

Author: neleai (Ondrej Bilka)
Status: Feedback
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: Joke
Target version: 


Migration from python to ruby is problematic because ruby lacks certain features.
Most important python advantage is chained comparison
We must wrap every comparison like described below.

puts "yes" if 1<2<3<4

class Fixnum
  def <(a)
    ((self<=>a)==-1)&&a
  end
end
class FalseClass
  def <(a)
    false
  end
end




-- 
http://bugs.ruby-lang.org/