exactly, lua makes it easier to program.
The fact that that image exists is a loving disgrace to programmers around the entire loving world. Holy stuff I've never seen a bigger form of incompetency.
You do not script for games using programming languages. Nobody wants to use C++ to write mods except me, and I'm crazy. Verbosity is a plague to programming but taking something that's one command is no accurate show of verbosity. Here's some more accurate comparisons:
C++auto someOtherNum = 24;
for(auto someNum = 0; someNum < 30; someNum += 3) {
if(someNum == someOtherNum)
break;
}
Lualocal someOtherNum = 24;
for someNum=0,30,3 do
if someNum == someOtherNum then
break
end
end
Wow. Huge difference, right? Aside from the fact that Lua collapses the for statement, they're virtually identical. Now let's see what happens if we don't just want a basic incremented for loop:
C++int someOtherNum = 24;
for(int someNum = 0; someNum % someOtherNum != abs(someNum - someOtherNum) || someNum > someOtherNum; someNum += someNum/abs(someNum)) { }
Now, see, in this case I'm using a non-standard conditional statement. It's not just a less than. This
completely breaks Lua's for loop, and we can't even use it anymore.
Lualocal someOtherNum = 24;
local someNum = 0;
while someNum % someOtherNum ~= math.abs(someNum - someOtherNum) do
if someNum > someOtherNum then
break
end
someNum = someNum + (someNum / math.abs(someNum))
end
The reason I'm putting this out here is that while something that
isn't even a program is shorter in Lua, that doesn't mean everything is easier. It doesn't even matter anyway, 'cause I've got major beef with the fact it does that in the first place. I didn't forgetin' tell it to import console I/O functions. Why would it do that for me? Now that function I wanted to name
print[/i] has to be called printA or something because Lua decided that it needed to import a function I'm not even trying to use.