On 2025-04-29 01:40, Roberto Ierusalimschy wrote:
>> On 2025-04-27 00:18, Roberto Ierusalimschy wrote:
>>> [...]So, it was quite natural to use "~=" for NOT EQUAL. [...]
> Also, the manual for this version (dated May 27, 1994) is available> at Lua's website:
>
>
https://www.lua.org/ftp/refman-1.1.ps.gz [...]
[Insert cheeky grin]
Excerpting from "cola.pdf" (The Evolution of Lua, continued)
[...] _Bitwise operations_
For bitwise operations, we adopted the C operations
and operators, except for the exclusive or, that is
denoted by ~ in Lua. [...]
So "~=" is polymorphic?/overloaded? "NOT EQUAL", but "~" is
integer bitwise XOR?!
And as you say yourselves, you're evolving the language as you go
[They're Making It Up As They Go Along!]:
[...] _6. Conclusion_
In these 30+ years, Lua has evolved to meet requirements
coming from outside, ones that we had not planned for or
even imagined. Our focus on keeping the language small and
its implementation portable has helped us meeting these
requirements. Lua has acquired several modern features
without losing its original character. We hope to continue
in this path. [...]
The introduction of integers, too, can be seen as mostly an
incremental change: Except for the bitwise operators,
integers brought remarkably little change in how
programmers use Lua. [...]
--
[In any case, keep up the fantastic work.]
sur-behoffski (Brenton Hoff)
programmer, Grouse Software