>>12
cool you learned lua first! I have some questions for you:
1. Was it difficult to get the idea of references down? Like when you have two references that refer to the same object?
a = {1, 2, 3}
b = a
b[2] = 1
-- now a[2] == 1
Some people would expect b to change, but a should remain unaffected. I learned C first myself, and multiple pointers to the same object in memory is a very explicit construct there. Here it's more implied.
2. Was it difficult to get used to other languages that were more strict in terms of structure and how object oriented things are implemented? I thinking of Java most of all, but seeples as well. Was it weird to see:
class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
after getting by with:
print"Hello world!"
And did you ever try to implement some type of object oriented programming in lua while you were using it? Or did you wait on that until you got to the other languages with a built in framework for doing it? It seems like there's a lot more freedom in lua, that could allow a beginner to make bad language design decision and write a lot of code using it, only to find later that it is fundamentally flawed, and must be rewritten. I know this happened to me the first time I got into lua, but I was being pretty experimental.
I haven't meet many people that started out with lua, so it would be interesting to hear how it was for you.