Is it possible to have class.property = x return something other than x?
One downside is that you would break the chained assignment semantics: $ irb irb(main):001:0> x = y = 3 => 3 irb(main):002:0> p x 3 => nil irb(main):003:0> p y 3 => nil irb(main):004:0> Consider: x = MyClass.property = 3 Then x would take true if this worked as you had expected (right-associativity). That could … Read more