[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: RE: ~= vs. !=
- From: "Nick Trout" <nick@...>
- Date: Wed, 26 Nov 2003 16:33:58 -0800
> Mark Hamburg:
> I'm not advocating a change -- though I do have to pause to think
> the inequality operator is in Lua when I need it -- but if I were
> replacement, I'd probably go with "<>" rather than "!=" since "!="
> makes sense if you also introduce "!" where as "<>" fits with the
> inequality operators.
This just goes to show how there are different opinions about style,
consistency and implementation.
> Virgil Smith:
> Furthermore, I'm befuddled by the statement that != is a *special*
> So, does anyone have references for their assertions of the frequency
Dylan uses ~= as well. != seems to be the highest median use but ~= is
not the only variant.
FWIW Python just had *massive* discussion about tertiary operators (i.e.
C: t ? a : b) and came to NO conclusion, i.e. there was no consensus so
it was not added.