lua-users home
lua-l archive

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


On Thu, Jan 7, 2016 at 5:30 PM, Daurnimator <quae@daurnimator.com> wrote:
> On 8 January 2016 at 08:41, Jonathan Goble <jcgoble3@gmail.com> wrote:
>> Side question for Roberto and Luiz: why was ~= chosen for "not equals"
>> instead of the more standard != in most languages? Having to remember
>> to use ~= instead of != is a bit annoying when I'm switching back and
>> forth between multiple languages for different projects.
>>
>
> IIRC, at the time of lua's creation, the world hadn't agreed on != yet.
> Other languages (e.g. MATLAB) also use '~='

OK, fair enough. I may look into tweaking the parser to accept != as
well as ~= for my own use, though that depends on whether I can wrap
my brain around the parser.