[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available)
- From: David Demelier <demelier.david@...>
- Date: Thu, 10 Jul 2014 18:46:27 +0200
On 09/07/2014 18:11, Coroutines wrote:
On Wed, Jul 9, 2014 at 9:01 AM, Sean Conner <firstname.lastname@example.org> wrote:
I had no problem in picking up Lua, and I've been programming in C since
1990. Sure, still make the occasional '!=' instead of '~=' but but that's
minor compared to some other issues I have with Lua .
Personally I wish != were used for logical-not and ~= were used for
triggering __eq without the type equality check. It would be like an
'approximately equal' sort of operator. It's what I think of when I
use ~= in Perl to match text against a regex. The regex (if
unanchored) will be matched through the string not only at the
beginning (unlike how one uses lpeg).
I'll be sad to see David go. I liked his posts and he's a clever guy.
This kind of messages which have gone straight to my heart.
I have reconsidered my choice in a very different manner. At the
beginning, I have planned a very big project which is a MMORPG engine
where the core is written C++ and the games are developed in Lua.
This is the original idea, while I still second my original message, I
will not leave Lua completely but consider this instead:
1. My project will primarily provide a framework in C++ where Lua will
be *completely* optional
2. The project will provide bindings for Lua
That is, users will still be able to use native C++ for very strict
typing and eventually Lua for more convenience and I will still continue
to use Lua. However, I think my own games will be in C++.