Quote:
Originally Posted by coreys
Make it harder? This would make it easier, and clearer. x.x
|
And redundant. A new scripter would be wondering, "What is the correct syntax? Do they do different things? Why are there two ways to do this? Am I doing it wrong if I do it this way?" etc.
Different languages have different ways of doing things. Python has this syntax. PHP has the array_slice() and substr() functions. GS2 has .subarray() and .substring().
Quote:
Originally Posted by Tigairius
Personally, I just wish GS2's substring supported something like string.substring(-1) which would take off 1 character from the back of the string, rather than having to write out: string.substring(0, string.length() - 1)
|
That seems like it wouldn't be terribly difficult to do.