lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I agree with Daniel.
It is evident that != is widely used, but I don't think it means that Lua should follow.
I'm happy with ~=.


On Fri, Mar 8, 2013 at 1:00 AM, Daniel Silverstone <dsilvers@digital-scurf.org> wrote:
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