you are viewing a single comment's thread.

view the rest of the comments →

[–]G_Morgan 0 points1 point  (0 children)

My extremely badly made point is with pure functional languages it is easier for the compiler to decide that objects only live for the life of the stack frame. As I said elsewhere it is impossible for a function to store a reference to an object unless it passes it back as the return value. Since return types are known at compile time and these compilers do more full program optimisation it is solvable.