M
Modular•15mo ago
Kushagra

OS level package?

Is there any native way to use os level system calls like file opening, closing of files, or clearing the terminal? If not, how soon can we expect to have it 👀
2 Replies
TeamPuzel
TeamPuzel•15mo ago
I doubt we will see a complete standard library until the language is more stable, you’d have to rely on hacks and constantly rewrite everything to adapt to new features as they’re being added. There’s a few issues I can think of with a good os library, for example you’d want to create a more abstract stream api for reading and writing files, which you can’t do properly without traits. The best you could do is wrap libc APIs in something that isn’t much better
Want results from more Discord servers?
Add your server