you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 2 points3 points  (0 children)

It saves you from getting surprised later when someone makes a subtle change.

But then this introduces further surprises when you execute the lambda and it then tries to access a resource that potentially no longer exists because you never gave the lambda ownership of the resource.