News for hackers. Stuff that matters.
Re:C: Simple Defer, Ready to Use by jefbyokyie on Monday January 06, 2025 @07:08PM (#42617648)
> The whole point of syntactic sugar is for the machinery to be hidden

And when the machinery fails, you'll not only have the machinery to debug, but the syntactic sugar too.

Re:C: Simple Defer, Ready to Use by restalis on Monday January 06, 2025 @08:04PM (#42618063)
Still, the machinery gets more eyeballs and scrutiny to how it works than what some Joe's given codebase does, so chances are that the cause of failure will be somewhere on Joe's side. Then, the code will still need to be debugged, and you'll be glad having to deal with well-known implementations of DRY rule under "syntactic sugar" category instead of whatever Joe happened to come up with instead. Or, maybe there was no DRY rule in Joe's mind and therefore there will be a lot more code to maintain and debug.
Re:C: Simple Defer, Ready to Use by cryptonector on Tuesday January 07, 2025 @12:09AM (#42619470)
Yeah, compiler bugs happen.