News for hackers. Stuff that matters.
Re:Panic at the Job Market by protomolecule on Thursday July 18, 2024 @03:25AM (#40993287)
>in C every copy, every destructor, every alloc, is explicitly declared everywhere. Explicit is much safer than implicit

Unless a programmer forgets to call a 'destructor' on some code path in C's explicit error handling maze.

Re:Panic at the Job Market by d110af5ccf on Thursday July 18, 2024 @05:34PM (#40999990)
Agreed. Explicit is only better than implicit when you have a mechanism that can reliably identify instances where you forgot to do something.

Actually for resource management I'd go so far as to say that implicit is better than explicit in the vast majority of cases. Now if only the rules that determine what happens during initialization in C++ weren't so horribly convoluted.