> But the OS doesn't have an "open drag-and-dropped file, extension .png or .jpg" function call, it only has "open file" which lets me open ~/.ssh/id_rsa too.
A programming language doesn't have to expose system calls directly. It arguably it shouldn't, in fact, for exactly this reason.
A programming language doesn't have to expose system calls directly. It arguably it shouldn't, in fact, for exactly this reason.