News for hackers. Stuff that matters.
Re:Manifesto: Adding memory ownership to Swift by astrange on Friday February 17, 2017 @09:26PM (#13673290)
Obj-C ARC could do this with NS_VALID_UNTIL_END_OF_SCOPE, but Swift only has withExtendedLifetime(), which is probably more typing than just using defer.

(The ObjC version would break if you ever threw an exception, ARC doesn't release objects during unwinding!)

Re:Manifesto: Adding memory ownership to Swift by pjmlp on Saturday February 18, 2017 @03:29AM (#13674065)
> withExtendedLifetime(), which is probably more typing than just using defer.

with..., arrow down, enter.