@supercat: certainly there are use cases in which the
malloc
(& friends) interface is not optimal, something which could equally well be said for many features of the standard C library. On the other hand, millions of programmers have successfully used it, and many continue to do so. Looking at other languages' standard libraries, designed afterwards, does not actually give much support to the value of hindsight. You or I might have come up with different designs, but who knows what people would be saying about them 40 years later :-) —
rici 56 secs ago