[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Alternative to ~= for inequality?
- From: Daniel Silverstone <dsilvers@...>
- Date: Thu, 7 Mar 2013 16:00:08 +0000
On Thu, Mar 07, 2013 at 12:53:04PM -0300, Luiz Henrique de Figueiredo wrote:
> > I'd prefer to see ¬= myself. Makes more sense to me than ~= and != both.
>
> Since ¬ is not ASCII, we opted for ~ . In logic, both ¬ and ~ are used
> for "not": http://en.wikipedia.org/wiki/Negation#Notation
Haskell uses /= in an attempt to make it look a little more like a ≠. A
language I used a bit on a uni course used == for equality and =/= for
inequality.
I *like* Lua's ~= and hardly think it's a problem for people much.
D.
--
Daniel Silverstone http://www.digital-scurf.org/
PGP mail accepted and encouraged. Key Id: 3CCE BABE 206C 3B69