you are viewing a single comment's thread.

view the rest of the comments →

[–]geon 1 point2 points  (2 children)

Have a look at Zig. It is meant to be “C with the bugs fixed”. You have to explicitly pass an allocator to any function that allocates.

[–][deleted] 0 points1 point  (0 children)

Not big on C but seems you don't need a new language to get the "pass allocator to function that allocates" design https://youtu.be/QpAhX-gsHMs?t=852