Okay, while designing ludascript lots of things came up that I never had considered. Now they need to be resolved. You guys just vote on whatever options you like best.
1) Function definition:The syntax for defining functions (for those that only use GM: GM doesn't need a function def syntax because it keeps scripts in separate files, but this only uses one file so it needs it).A) def FuncName(arg, anotherarg){}B) function FuncName(arg, anotherarg){}C) FuncName(arg, anotherarg){}D) FuncName = function(arg,anotherarg){}E) ~FuncName??arg::anotherarg -> <-2) Iterating 'i' from 0 to 'N'A) for (i = 0; i <= N; i++)B) for (i in 0:N)C) for (i from 0 to N)D) (FORLOOP (= i, 0) (<= i, N)(++i))3) Globals versus locals (how the user indicates the difference)A) global.global, localB) $global, localC) global, local.localD) gGlobal, local//small g + capital means global hereE) global AS GLOBAL, local AS LOCAL4) Arrays, by reference or by value?A) a = [];b = a;change(a);//both b and a are changedB)a = [];b = a;//the contents of 'a' are expensively copied into 'b'change(a);//only a changesC)a = [];b = a;//do not allow array assignments, this errorsOkay, the last one in each is a joke. Feel free to vote for em anyway. Suggest stuff too if you'd like.
The last ones will give your language some character.
BBBB
I actually found some cases where not having semi-colons would be ambiguous, so, at least for now, they're mandatory.
For the record, my current implementation is BBDA, to pass an array by value you must do a = copy(b);
Aww, look at the GML-oriented peoples picking the closest things to their favorite language :3
C
ABBEh, Josh, the language itself isn't really that bad. C++'s is better, but that's expected.1. C (No return type?)
2. A3. A4. BReturn type? My language doesn't use static typing.
PY: GML is horrible.1) B
2) A3) B4) CBABB
I know… I'm late.