drkwv wrote:Is there any chance of adding JavaScript as a language used for modding? Programming with Lua is pain. It even doesn't recognize != operator. It blows my mind. I hate Lua. Lua is a bullet that missed it's aim. They wanted simple pretty language but created a freaking brain-eating monster instead.
PilzAdam wrote:Yea sure, we start recoding thousands of lines of the engine and break every single mod because you want to use != instead of ~=.
sfan5 wrote:Please compare Why JavaScript sucks and Why Lua sucks
BrandonReese wrote:Use ~= instead of !=
Problem solved
drkwv wrote:PilzAdam wrote:Yea sure, we start recoding thousands of lines of the engine and break every single mod because you want to use != instead of ~=.sfan5 wrote:Please compare Why JavaScript sucks and Why Lua sucks
Well, I see the point. But, just to satisfy my curiosity, why not Python then? Does the Python has ever been considered before you decided to choose Lua?
spillz wrote:Code in it for a week and you will adapt well enough.
philipbenr wrote:spillz wrote:Code in it for a week and you will adapt well enough.
I think that Lua is fine for Minetest, and it is very easy to learn. I did it in one day. (Not very extensively, but hey)...
string test = "Hello world";Krock wrote:Lua is confusing for programmers
rubenwardy wrote:It is best to keep with Lua, though.
philipbenr wrote:rubenwardy wrote:It is best to keep with Lua, though.
I second that.
Krock wrote:philipbenr wrote:spillz wrote:Code in it for a week and you will adapt well enough.
I think that Lua is fine for Minetest, and it is very easy to learn. I did it in one day. (Not very extensively, but hey)...
Lua is confusing for programmers:
~= instead of !=
no var++ method
indexing starts at 1 instead of 0
everything is just one type of variable. my first try to define a stringYour phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
string test = "Hello world";
test = "Hello world"Krock wrote:everything is just one type of variable
Lua Manual wrote:Lua is a dynamically typed language. This means that variables do not have types; only values do. There are no type definitions in the language. All values carry their own type.
D0431791 wrote:+1. Somebody will branch Minetest and implement a javascript Modding System.
Users browsing this forum: Bing [Bot] and 5 guests