Standard error?

Been looking at the Swift standard library pages at Apple’s website. There’s “print” and “readLine” for I/O to/from standard output/input. Put there seems to be no function for standard error. The “print” function has an overload for custom streams, but there doesn’t seem to be an object that represents standard error that could go there.

Is there a TextOutputStream object for standard error? Or does that have to be added? I wonder if it should be a global or a type-level property somewhere?

···

Sent from my iPad

This has been on my wishlist for a long time and I don’t think it’s in the
Swift stdlib. You have to import Darwin/Glibc.

···

On Wed, Oct 25, 2017 at 3:51 PM, Daryle Walker via swift-evolution < swift-evolution@swift.org> wrote:

Been looking at the Swift standard library pages at Apple’s website.
There’s “print” and “readLine” for I/O to/from standard output/input. Put
there seems to be no function for standard error. The “print” function has
an overload for custom streams, but there doesn’t seem to be an object that
represents standard error that could go there.

Is there a TextOutputStream object for standard error? Or does that have
to be added? I wonder if it should be a global or a type-level property
somewhere?

Sent from my iPad
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution