Quote:
Originally Posted by pinterf
Provided the [ and ] symbols are not reserved.
Or { and }. Language experts will decide.
|
[ and
] are currently used only for nestable block comments
[* ...
*].
Although technically possible, I recommend not using
{ and
} as these are already well established as code block delimiters, whereas [] is familiar from other languages as indicating array indexing.
You could argue for using a different symbol, like
{ ...
}, for array
creation (as in C/C++ and Java), but I would prefer [] for both indexing and creation. There is no problem in distinguishing the two contexts in the parser even if the same symbol is used for both.
On a wider note...
You have so far shown examples of how the array features would be used in the script language.
From the plugin writer's point of view, I would also like to see a list of proposed API changes.
I imagine there will be changes to the public interface of AVSValue and possibly new ScriptEnvironment functions.