Consider languages like Python or JavaScript that allow functions to be nested like this:
print(vector(a * b),(a * c),(b * c)))
or flat like this:
i = (a * b)
j = (a * c)
k = (b * c)
V = vector(i,j,k)
print(V)
How much does the different format affect performance? Can valid generalizations be made, or does it vary a lot by language?
I expect that an optimizing compiler would do inlining and output approximately the same machine code for both. So perhaps this would be just an issue for interpreted languages?