[swift-users] file io in Swift 2.2 for Linux (would like to be pointed in the right direction)

Maury Markowitz maury.markowitz at gmail.com
Fri May 20 06:59:59 CDT 2016

> On May 20, 2016, at 4:16 AM, Quinn The Eskimo! via swift-users <swift-users at swift.org> wrote:
> I disagree.  One-shot file system APIs make sense for a lot of reasons:

I do most of my programming in .Net, where streams are the primary IO system. Even simple tasks often require multiple objects and loops copying data between them. Limitations in the API and in the implementations layer on complexity.

I relish whenever I have to do IO on the Mac using the one-shot API. A single line of code almost always accomplishes what I want, and the API is perfectly clear on what it's doing.

> I generally find myself streaming through a file only when I’m dealing with some sort of I/O pipeline, which is the exception rather than the rule.

Indeed, and in these domain's it's an excellent conceptual platform to work in. But as the *primary* API it's a wonderful example of distributed cost.

More information about the swift-users mailing list