|
| 03 Mar 2017 10:48 PM |
| I know little to nothing when it comes to Lua, but I can do a few things with Python. Overall, the syntax for the two look really similar. Anyone know any of the main differences between the two? And as a side question, why doesn't Roblox switch over to something like Python, as it's more commonly used? |
|
|
| Report Abuse |
|
|
|
| 03 Mar 2017 10:49 PM |
Lua is Lua and Python is Python
Seriously. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 03 Mar 2017 10:50 PM |
lua doesn't use those god awful colons or semicolons
there is no elif but there is elseif and else if
all statements need to end with "ends
if blah then dothis end
other than that there is not much. but rbxlua is different from pure lua too
|
|
|
| Report Abuse |
|
|
|
| 03 Mar 2017 11:21 PM |
Well there's lots of differences Time got down most of the basic ones, but there's a lot to it.
BUT both are the same kind of language. If you know Python you'll get Lua fast. |
|
|
| Report Abuse |
|
|
chimmihc
|
  |
| Joined: 01 Sep 2014 |
| Total Posts: 17143 |
|
|
| 04 Mar 2017 12:04 AM |
"Python, as it's more commonly used?"
What statistic are you talking about? That sounds like nonsense spread by fanboys. Python is almost never used as a game scripting language, for a huge mountain of reasons.
Now, I recommend actually using both languages thoroughly. At such a time you will realize that syntax means nothing.
|
|
|
| Report Abuse |
|
|
|
| 04 Mar 2017 12:44 AM |
Python doesn't require semicolons.
Also unless roblox converted Python to Lua, they'd never use it, and if they did it'd be redundant.
20,473 |
|
|
| Report Abuse |
|
|
jamman111
|
  |
| Joined: 08 Sep 2012 |
| Total Posts: 1977 |
|
|
| 04 Mar 2017 03:02 AM |
| I study python at school for my computing gcse but I'm starting to learn lua. There isn't much of a difference, i find lua easier to pick up |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2017 06:09 AM |
Fake programmer If you want python, use a different engine. I suggest one with visual scripting, since it's the only programming you'll ever learn |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2017 06:16 AM |
tried python once. Didn't understand. Find c++ more readable than python.
Programming languages should not try to be human, rather try to be exact. |
|
|
| Report Abuse |
|
|
AxonMega
|
  |
| Joined: 29 Aug 2014 |
| Total Posts: 2403 |
|
|
| 04 Mar 2017 08:02 AM |
| Python is object oriented like Java, whereas Lua, although it has features designed to simulate object oriented programming, is not. |
|
|
| Report Abuse |
|
|
mudkip99
|
  |
| Joined: 17 Jun 2008 |
| Total Posts: 3362 |
|
|
| 04 Mar 2017 08:34 AM |
| I can't really speak to Python, since I don't have much experience with it, but Lua is an incredible language for what it is. It's a very small and simple language, it's very easy to embed in an engine, it's very expressive for how simple it is, and for a scripting language, its very performant. Python may be common for general purpose programming, but in the games industry, Lua is the go-to language if your not looking to roll your own scripting language. |
|
|
| Report Abuse |
|
|
|
| 04 Mar 2017 09:08 AM |
^ You cant speak a computer langugage but mkay.
Anyways, Lua and Python are different because they have different letters :P |
|
|
| Report Abuse |
|
|