[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Alternative to ~= for inequality?
- From: Rob Kendrick <rjek@...>
- Date: Fri, 8 Feb 2013 16:02:58 +0000
On Fri, Feb 08, 2013 at 11:52:53PM +0800, Michael Richter wrote:
> On 8 February 2013 21:58, sergei karhof <firstname.lastname@example.org> wrote:
> > Rather than Perl-izing it, I would say: bringing it in line with most
> > of modern languages.
> > FWIW, Lua's solitary choice of ~= is a weird quirk.
> Personally I'd prefer ¬= myself. Because ! to me means "send message" in a
> language I use that's far more modern than C or C++ or any of the other
> curly brace blight languages.
! to me means "pointer dereference" :) When I first started using Lua,
many many years ago, ~= confused me because it struck me that it should
be "approximately equal". I managed to get over this within 5 minutes
of using the language, and it confuses me why it might take anybody else
> I cannot believe that people are calling syntax from a language created in
> the '60s (be *very* careful before trying to challenge me on this date!)
Well, both B and BCPL are from the '60s. I don't recall if BCPL used !=
but B certainly did.