Why does C have the best file API?

30 points by robalex


thasso

mmap(2), the API in question, is a system call; it’s not specific to C in any way. I’m sure the memory model of some other languages makes it more difficult to use mmap(2) in this way, but, still, there exist plenty of languages where you can write practically the same code. I believe it’s somewhat misguided to make this a C thing.