A lot of this is really exciting! Thank you so much for all the work you have been doing on increasing usability and performance.
How would you feel about renaming time()
to simulatedTime()
or simulatedtime()
?
Also, are structs in the pipeline?
Ideally these would get the same performance:
function add(
a1, a2, a3, a4, a5, a6, a7, a8, a9
b1, b2, b3, b4, b5, b6, b7, b8, b9
)
return
a1 + b1,
a2 + b2,
a3 + b3,
a4 + b4,
a5 + b5,
a6 + b6,
a7 + b7,
a8 + b8,
a9 + b9
end
type structType = [
[1]: number;
[2]: number;
[3]: number;
[4]: number;
[5]: number;
[6]: number;
[7]: number;
[8]: number;
[9]: number;
]
function add(A, B)
return [
[1] = A[1] + B[1];
[2] = A[2] + B[2];
[3] = A[3] + B[3];
[4] = A[4] + B[4];
[5] = A[5] + B[5];
[6] = A[6] + B[6];
[7] = A[7] + B[7];
[8] = A[8] + B[8];
[9] = A[9] + B[9];
]: structType
end