Page 2 of 2

Re: Confused about assignments

Posted: Thu Sep 12, 2019 2:08 pm
by zorg
The upside of it is that it's predictable; no matter how many results a function returns, you can always be sure, that if you have another value in the next "slot" after the function call, that won't be moved around. (including the case where the function doesn't return even one value)

That said, the negative example you gave pretty much highligts the reason why it works that way.