Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

needs println_to_stderr #75

Open
hackwaly opened this issue Nov 22, 2024 · 2 comments
Open

needs println_to_stderr #75

hackwaly opened this issue Nov 22, 2024 · 2 comments

Comments

@hackwaly
Copy link
Contributor

No description provided.

@peter-jerry-ye
Copy link
Collaborator

How about introduce a type File or OutputStream and make println as:

const STDOUT : File = File(2) // or abstract type ?
fn println[T : Show](content : T, ~description : File = STDOUT)

@hackwaly
Copy link
Contributor Author

How about introduce a type File or OutputStream and make println as:

const STDOUT : File = File(2) // or abstract type ?
fn println[T : Show](content : T, ~description : File = STDOUT)

There is https://github.com/lijunchen/unstable-io-mbt/blob/main/io/lib.wasm-gc.mbt

But I think it involves many design decision points, and can't get merged soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants