Not “fundamentally” incompatible:<br><br>var stderr = FileHandle.standardError<br>/* Conform FileHandle to TextOutputStream */<br>print("foo", to: &stderr)<br><br><br><div class="gmail_quote"><div dir="ltr">On Fri, Aug 18, 2017 at 01:39 Brent Royal-Gordon <<a href="mailto:brent@architechies.com">brent@architechies.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><blockquote type="cite"><div>On Aug 17, 2017, at 8:20 PM, Xiaodi Wu via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:</div><br class="m_814963807829650536Apple-interchange-newline"><div><blockquote class="gmail_quote" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div><div><div><div><div><div><div><div><div><div><div>*<span class="m_814963807829650536Apple-converted-space"> </span><span style="font-family:monospace,monospace">stderr</span><span class="m_814963807829650536Apple-converted-space"> </span>should go wherever<span class="m_814963807829650536Apple-converted-space"> </span><span style="font-family:monospace,monospace">stdin</span><span class="m_814963807829650536Apple-converted-space"> </span>and<span class="m_814963807829650536Apple-converted-space"> </span><span style="font-family:monospace,monospace">stdout</span><span class="m_814963807829650536Apple-converted-space"> </span>go. Since it’d be silly for a function like `<span style="font-family:monospace,monospace">print(_:separator:terminator:)</span>` or `<span style="font-family:monospace,monospace">readLine(strippingNewline:)</span>` to live anywhere but the standard library, then it stands to reason that the<span class="m_814963807829650536Apple-converted-space"> </span><span style="font-family:monospace,monospace">stderr</span><span class="m_814963807829650536Apple-converted-space"> </span>version should also live in the standard library.<br></div></div></div></div></div></div></div></div></div></div></div></blockquote><div dir="auto" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div dir="auto" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">FWIW, FileHandle.standardInput, FileHandle.standardError, FileHandle.standardOutput, and FileHandle.nullDevice all live in Foundation.</div></div></blockquote><br></div></div><div style="word-wrap:break-word"><div>And, since they're read-only, are fundamentally incompatible with `print(…to:)`, which requires its `output` parameter to be passed `inout`.</div></div><div style="word-wrap:break-word"><br><div>
<span class="m_814963807829650536Apple-style-span" style="border-collapse:separate;font-variant-ligatures:normal;font-variant-east-asian:normal;line-height:normal;border-spacing:0px"><div><div style="font-size:12px">-- </div><div style="font-size:12px">Brent Royal-Gordon</div><div style="font-size:12px">Architechies</div></div></span>
</div>
<br></div></blockquote></div>