From: Marnen Laibow-Koser Date: 2009-12-21T04:16:37+09:00 Subject: Re: Correcting complex math Paul Smith wrote: > On Sun, Dec 20, 2009 at 2:51 PM, Colin Bartlett > wrote: >> to suggest removing (!) something from Complex, >> >> >> I think that can be misleading (see the examples above), >> and I would prefer it if "<=>" and "<", etc, >> were *not* defined for Complex, >> and if one wants to compare absolute values >> then one should do so explicitly. >> Agreed. >> > > If you're messing around with complex variables and you come across > the '>' operator, what else would you expect it to do other than > compare absolute values? I would expect it to be undefined, just as it is for complex numbers in real-world math. > There's no room for confusion here, it's > just a syntax shortcut like we have in so many other places in Ruby. > And a very poor one. Complex numbers have no intrinsic ordering, and it is silly to pretend they do. Complex#> is as meaningless as Integer#color. > -- > Paul Smith > http://www.nomadicfun.co.uk > > paul@pollyandpaul.co.uk Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org  -- Posted via http://www.ruby-forum.com/.