I don't think we should "ever" remove uBasic, I believe it's a lot easier for a complete newbie to learn to read and write compared to Lua.
Can you please elaborate on this? Simple uBasic scripts converted to Lua are in my eyes nearly identical. Which syntax do you have in mind that is easier for newbies to write/grasp?
Uhm, when you say "expose UI stuff though Lua itself", you mean that it should be the script's job to draw menus etc.?
One-letter variables are a plague indeed, but surely we could get rid of that limitation without changing the whole approach?
@param X Number of fraks in the frobulator
@param NumFrobFraks Number of fraks in the frobulator
I've nothing against keeping uBASIC, but I really cannot stop screaming when I see goto's advocated for any reason... eek. You're seriously saying it's easier for the "casual user" to think in assembly terms - "if this happen, go back to the instruction location N", rather than "repeat the following ten times, stop if X happens"?
while is_pressed(KEY_SHOOT) shootstart: if not is_pressed(KEY_SHOOT) then goto exitshootgoto startexit:
It's clear that you are trying to get rid of uBASIC by your biased example
Started by staylo « 1 2 3 4 5 » General Discussion and Assistance
Started by mikerussell General Help and Assistance on using CHDK stable releases
Started by ian_reid General Help and Assistance on using CHDK stable releases
Started by Yerry Feature Requests
Started by rhameed Script Writing