Developers of NXSL may say in more details, but as far as I understand, the problem is that NXSL is loosely-typed language. So if you run this:
a = 33;
println(typeof(a));
a = "33";
println(typeof(a));
you'll see that when string contains only numbers, it's type is automatically converted to integer. Given that, using + both for addition and concatenation is problematic.
To add, since some time ago there are f-strings, e.g.:
value = 123;
println( f"The value is: {value}" );
so the need for concatenation might be not so high.
.. is already working for concatenation in v. 4.5. It's planned to have automatic conversion when migrating to 5.0 that would go through all scripts and change them.
In 5.0 there are compilation warning on use of deprecated functions, but these only present in script editor. The were some plans to check scripts everywhere in the system for deprecated functions, I will check later.
a = 33;
println(typeof(a));
a = "33";
println(typeof(a));
you'll see that when string contains only numbers, it's type is automatically converted to integer. Given that, using + both for addition and concatenation is problematic.
To add, since some time ago there are f-strings, e.g.:
value = 123;
println( f"The value is: {value}" );
so the need for concatenation might be not so high.
.. is already working for concatenation in v. 4.5. It's planned to have automatic conversion when migrating to 5.0 that would go through all scripts and change them.
In 5.0 there are compilation warning on use of deprecated functions, but these only present in script editor. The were some plans to check scripts everywhere in the system for deprecated functions, I will check later.