News for hackers. Stuff that matters.
Re:Implementing Go's defer keyword in C++ by d4l3k on Saturday October 21, 2017 @07:53PM (#15524275)
What happens when you have to enter "with" something an arbitrary number of times? That gets very painful.
Re:Implementing Go's defer keyword in C++ by vbernat on Sunday October 22, 2017 @02:53AM (#15525521)
"with" supports an arbitrary number of contexts.
Re:Implementing Go's defer keyword in C++ by eesmith on Sunday October 22, 2017 @06:27AM (#15526046)
arbitrary but fixed number of contexts. What if you wanted to open a variable number of files, as in my example at https://news.ycombinator.com/item?id=15524395 ?