What's better about Ruby than Python?

JCM joshway_without_spam at myway.com
Fri Aug 22 15:31:18 CEST 2003


Heiko Wundram <heikowu at ceosg.de> wrote:

> Hmm... I still use <> exclusively for my code, and I wouldn't really
> like it getting deprecated. At least for me, != is more difficult to see
> when browsing source than <> is, as != has a striking similarity to ==,
> at least at the first glance...

> I know <> has been deprecated for long, but I'd much rather have both
> syntaxes allowed, also for the future...

How about we keep them both, but make <> mean greater-than-or-less-than,
which is a different comparison than != on partially ordered sets.

1 > 2    -- false
1 < 2    -- true
1 != 2   -- true
1 <> 2   -- true

1 > 'x'  -- false
1 < 'x'  -- false
1 != 'x' -- true
1 <> 'x' -- false

Ok, I'm joking.  Mostly.




More information about the Python-list mailing list