User talk:Dchapes: Difference between revisions
→Go Secure temporary file task.: ....fancier
(→Go Secure temporary file task.: new section) |
(→Go Secure temporary file task.: ....fancier) |
||
Line 14:
== Go Secure temporary file task. ==
Should we close the file too? I think it gets closed when the process ends but I'm with the people who don't like to rely on that. It could either be a separate defer or we could defer a literal with both the Close and Remove.
To get fancy we could put the existing code in a function, have that function stat the file, return the file name to main, then have main stat the file and show that it's been removed. ...To get even fancier we could fire off a thousand concurrent functions and check all errors to show there are no collisions. —[[User:Sonia|Sonia]] ([[User talk:Sonia|talk]]) 19:20, 29 December 2014 (UTC)
|