[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Can someone sell Lua 5.2.0 to me please ?
- From: Rebel Neurofog <rebelneurofog@...>
- Date: Sun, 18 Dec 2011 22:22:08 +0300
> 4) Add the convenience construt of x += 123 (and other similar
I would hate Lua for that since there's no such semantics in Lua.
And syntax have to reflex semantics.
In Python you may write str1 += "Something else\n" and
wonder "Why the hell the script is so terribly slow?"
'+=' is supposed to mean addition to existing memory block.
But Python is similar to Lua about that: it constructs a new string.
So Python isn't honest with me. I hope Lua won't ever be like that.