2 ms·
They didn't display any misunderstanding of C callbacks. The two complaints I read were: 1. You pass a const pointer in and get a mutable pointer out. 2. The va
by IshKebab 3y ago
They didn't display any misunderstanding of C callbacks. The two complaints I read were: 1. You pass a const pointer in and get a mutable pointer out. 2. The value of one of the parameters was inconsistent.
Both are valid criticisms. The first point is objectively wrong API design.
Let me repeat, it is objectively wrong. C may not have the strongest type system but that doesn't mean that the intended programming model is "completely ignore const correctness".
> knows his craft
Maybe. But there are plenty of programmers who achieve great things while being objectively awful programmers.
The criticisms in this article (assuming they are true) are really unarguable.