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

Consider changing filesystem default methods for Sink/Source #412

Open
qwwdfsad opened this issue Nov 13, 2024 · 0 comments
Open

Consider changing filesystem default methods for Sink/Source #412

qwwdfsad opened this issue Nov 13, 2024 · 0 comments
Labels

Comments

@qwwdfsad
Copy link
Contributor

qwwdfsad commented Nov 13, 2024

Currently, the file system interface provides the following methods:

fun sink(...): RawSink
fun source(): RawSource

yet for user-specific needs, one most likely needs Sink and Source interfaces that we encourage over Raw counterparts.

It would be nice to have something like:

// Part of the core interface

fun sink(...): Sink = rawSink().buffered()
fun rawSink(...): RawSink  = ...

and the corresponding source counterpart

@qwwdfsad qwwdfsad added the fs label Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant