4 ms·
Defer is more explicit than RAII, so a better fit for the very explicit C language
by kangalioo 6y ago
Defer is more explicit than RAII, so a better fit for the very explicit C language
- CyberRabbi 6y agoIt’s even more explicit to just call your cleanup routines manually, so by that logic “defer” is inferior to existing methods of handling cleanup in C
- gpderetta 6y agosubroutine calls requires implicit allocation and deallocation of stack frames. Real Programmers™ use goto and manage the stack by hand.
- drsozesakamoto 6y ago> subroutine calls requires implicit allocation and deallocation of stack frames. Real Programmers™ use goto and manage the stack by hand. Could u point to an example of programmers doing this ?
- gpderetta 6y agosorry, I had forgotten the /sarcasm tag. Although I guess Cheney on the MTA counts.( https://dl.acm.org/doi/10.1145/214448.214454 https://dl.acm.org/doi/10.1145/214448.214454 )