[swift-evolution] [swift-evolution-announce] [Returned for revision] SE-0089: Renaming String.init<T>(_: T)

Dmitri Gribenko gribozavr at gmail.com
Mon May 30 01:31:15 CDT 2016


On Sun, May 29, 2016 at 11:23 PM, Brent Royal-Gordon via
swift-evolution <swift-evolution at swift.org> wrote:
> There are *very* few conformances to Streamable in the standard library—just Character, String, and UnicodeScalar. I think that Streamable is for data that can be *directly* written to an output stream, whereas CustomStringConvertible is a way to convert an instance that *isn't* directly Streamable into something Streamable.

Right, this was the intent.  The intent was that Streamable is
something that is a container of string-like data, as opposed to other
things that have-a string representation.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-evolution mailing list