tokiwa-software / fuzion

The Fuzion Language Implementation
https://fuzion-lang.dev
GNU General Public License v3.0
46 stars 11 forks source link

unify reading and writing from/to recources #3302

Open michaellilltokiwa opened 3 months ago

michaellilltokiwa commented 3 months ago

The same mechanism should be used for reading/writing from/to all kinds of resources. (files, network connection, pipes, stdout/stdin, etc.)

It should be possible to do this buffered and unbuffered.

maxteufel commented 3 months ago

this is, essentially, what i'm trying to do currently. there is no nice way for unbuffered reading/writing, but this should be as easy as duplicating the buffered reader/writer effects but without handling buffering. they can both use the io.Read/Write_Provider