Scope-managed resource.
Scoped implicit lifetime.
Scoped implicit lifetime.
The main idea behind the Scope is to encode resource lifetimes through a concept of an implicit scope. Scopes are necessary to acquire resources. They are responsible for disposal of the resources once the evaluation exits the demarkated block in the source code.
See https://www.youtube.com/watch?v=MV2eJkwarT4 for details.
Acquire given resource in implicit scope.
Defer cleanup until the scope closes.