Closed lsh closed 1 year ago
Most likely depends on a trait/protocol system, same with any other std libraries. There's also the option that std libraries are not part of the mojo system, rather included via open source.
I think we can start a basic IO/fs module without traits. It's mostly non-parametric code. fyi @abduld
Oh interesting, I assume there would be (default) traits for Read, Write, Open, and sub-traits like how to read buffers, bytes and so on....
@ksandvik those are all things that are important long term, but the major ask here is just a method (something like):
fn read_path_to_string(path: StringRef) -> String
Which should simplify some experiments in the playground.
We need to order this correctly. The first step before this is to enhance the String type to support UTF encoding first. So, we want to tackle that before starting work on file system
Hey, I have an initial implementation of kind of "libc" in mojo. Still working on it, will see if I can upload it over the weekend. It basically allow you to use sockets, and read files, etc. I need to finish the FileSystem struct implementation and will upload to my github.
Feature added in 0.4.0
Review Mojo's priorities
What is your request?
What is your motivation for this change?
Any other details?
No response