From: matz@... Date: 2016-05-17T07:00:51+00:00 Subject: [ruby-core:75546] [Ruby trunk Feature#5899][Rejected] chaining comparsions. Issue #5899 has been updated by Yukihiro Matsumoto. Status changed from Feedback to Rejected ---------------------------------------- Feature #5899: chaining comparsions. https://bugs.ruby-lang.org/issues/5899#change-58677 * Author: Ondrej Bilka * Status: Rejected * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- 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 -- https://bugs.ruby-lang.org/ Unsubscribe: