I had to (try to) learn Lua recently because of an internship (mumblecoronamumble), and to be honest I couldn't understand how people can even stand to use the language, coming from a JS/Java/Scala/C#/Python/TS background. That said, I still get that feeling regarding TS too.
I know what you mean. After switching from Lua to Python and C++(which, by the way,
will eat you alive), I forever despised Lua-like syntax. I do like how it defines and uses arrays, though.. even though it's not much different from C's style.
Well, in the TS case it's because of that it uses it for storing something meaninful (the scope of the variables). While it might not be the best idea it isn't entirely useless either and it makes it very clear regarding what is global and what is local. PERL also uses them for something meaningful, that is, declaring what "type" it is of (value, list or "hash" (dictionary/table)).
Furthermore, PHP and PERL take advantage of the prefixes in order to do built in string interpolation, for example:
$bleh = 5;g
echo("it is $bleh");
would echo "it is 5".
There are many ways to implement values into strings, and personally, I'm not a big fan of TorqueScript's way, granted it's a high-levelish language. It just seems like it's trying to mimic other languages when it's
script. For the sake of extensibility, I don't think it was a good idea to give TS the likeness of one of the most hated languages (PHP), and to give it a syntax that's so much like lower-level languages.
Basically,
you have to type some stupidass symbol before a word to define a variable.
Also, what is your notation on the Scala syntax for declaring variables (similar to Pascal)? ("va(r|l) name:Type = value")
Because of that the more the compiler knows at compile-time the better can it protect you from shooting yourself in the foot.
If that's what I think it is, I think it's ugly, adds unnecessary lines to the file, and is inefficient in terms of typing speed.
That's probably just me, though, and I never actually used Pascal, so I suppose I'm in no position to judge.
It was actually made to get kids started on understanding programming
I don't quite understand how it introduces the concept of programming, besides fronting a sort of flowchart that
maybe gives you an idea of what an actual script looks like -- which, I'm guessing, the Scratch community doesn't recognize.
... Could you explain?
Think before you talk.
Since this is a bulletin board, I don't believe 'talking' is actually implemented as a choice or alternative to simply typing out posts.
If we were all 'talking', there would be a vocal representation of everyones' posts; there would be no 'typing' since there would be spoken tongue to take typing's place.