News for hackers. Stuff that matters.
Re:A Defer Mechanism for C by CyberRabbi on Monday December 14, 2020 @09:00AM (#25417555)
It’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
Re:A Defer Mechanism for C by gpderetta on Monday December 14, 2020 @10:40AM (#25418754)
subroutine calls requires implicit allocation and deallocation of stack frames. Real Programmers™ use goto and manage the stack by hand.
Re:A Defer Mechanism for C by drsozesakamoto on Tuesday December 15, 2020 @03:05AM (#25428100)
> 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 ?

Re:A Defer Mechanism for C by gpderetta on Tuesday December 15, 2020 @12:23PM (#25432424)
sorry, I had forgotten the /sarcasm tag.

Although I guess Cheney on the MTA counts.( https://dl.acm.org/doi/10.1145/214448.214454 )