News for hackers. Stuff that matters.
Re:Chris Lattner on garbage collection vs. Automatic Referen... by chombier on Sunday April 24, 2022 @07:16AM (#31142977)
Thinking about it, my guess is that properly scoping the variable does not really prevent the user from leaking the value anyway:

    with context() as foo: 
        leak = foo
This is unlike list comprehensions, where it is syntactically impossible to bind the comprehension variable to a new name accessible outside the comprehension.

So maybe the reason is that it is not really worth the trouble.

There are no comments on this comment yet.