For example, you can write:
Code: Select all
get text of field "field1"
put it into field "field2"
But you could also write:
Code: Select all
get the text of the field "field1"
put it into the field "field2"
You end up with the impression that "the" is purely optional, for properties as well as anything else.
But suddenly, when dealing with custom properties, things go wrong when not using "the".
Code: Select all
switch distance of me -- won't work without giving an error
....
switch the distance of me -- works
And this is only the first case I encountered. Maybe there are even situations in which something only works without a "the"?
And there's more.
Variables - why distinguish between variables and properties, btw? They are the same in far more complex languages - cannot have a "the" written in front of them.
So you cannot write...
Code: Select all
put the thingVar into field "field1"
Again, why? To be able to distinguish between variables and properties by how they are used?
The "of" already does that. Cannot have a "variable of object", correct?
And the "the" is optional even for properties (except custom properties where they are required).
In both the required and the will-break-if-used case, it seems like a very arbitrary decision was made concerning the usage of "the".
The biggest problem is that I'll use LiveCode for a programming course, and I will have a pretty hard time explaining when to use "the" and when not.
It certainly won't work without explaining the difference between variables and properties, which is a difference I really don't get.
I mean, I get how they behave differently and what you can do with properties what you can't with variables, etc.
But what I don't get is why there even are properties. It's like a second type of variables the language could easily live without. At least if variables could do everything a property can do right now.