[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: ~= vs. !=
- From: Gunnar Zötl <gz@...>
- Date: Thu, 27 Nov 2003 13:23:02 +0100
RI> Even today a lot of languages do not use `!=': Ada, Haskell, Eiffel, and
RI> Fortran90 use `/='; Icon, Dylan, Smalltalk (and Lua) use `~='; several
RI> Pascal-based languages use `<>'; Oberon, Modula2, and Modula3 use `#'.
not to mention perl and php, which both have 2 different comparison
operator sets, one for special cases: gt, lt, eq, ne for strings in
perl, ===, !== for an actual comparison with false (as opposed to just
a value that is considered to be false) in php. This is a lot weirder
and has bitten me a lot more often than using a single operator, that
might look strange at first, but does what you expect it to do.
just my 0.03? (inflation... ;-)
Gunnar
--
"They that can give up lib- Gunnar Zötl Tel. 06071-612079
erty to obtain a little Friedhofstraße 55 Fax. 01212-512317564
temporary safety deserve 64859 Eppertshausen E-mail gz@tset.de
neither liberty nor safety" - Benjamin Franklin, 1706-1790