What happens when you run this code? ``` require 'pathname' require 'tempfile' def make_pathname(value = http://Tempfile.new ("log")) http://Pathname.new (value) end p = make_pathname FileUtils.touch(p) puts "File: #{p.file?}" GC.start puts "File: #{p.file?}" ```
-
-
(This just gives me vibes of a talk I gave like 4 years ago about how ownership isn't optional, Rust is just giving you a way to express it)
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.