4 ms·
I would love to see defer in the language. It helps keep cleanup code close to the resource that is acquired. Would the proposed defer statement apply to loops
by smasher164 7y ago
I would love to see defer in the language. It helps keep cleanup code close to the resource that is acquired.
Would the proposed defer statement apply to loops as well? How would one implement such defers without dynamic allocation?