Re:Let’s stop copying C (2016)
by edflsafoiewq on Wednesday January 23, 2019 @02:02PM
(#18981458)
They are not comparable to RAII, see my comment above. Even the fact it has to bifurcate into defer and errdefer suggests that it lacks the generality to replace a totalizing resource management solution.
[ Parent
| on HN ]
Re:Let’s stop copying C (2016)
by notacoward on Wednesday January 23, 2019 @03:05PM
(#18982220)
No, they're not the same as your beloved RAII, but this isn't an object-oriented language so it doesn't have destructors. For the third time, what better solution do you propose for a non-OO language?