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

Hooman Mehr hooman at mac.com
Tue May 31 18:02:31 CDT 2016


This arises a different question: Should `description` always return the same value? For example: Can `description` of “May 31th, 2016” return “Today” if we evaluate it today and return “Yesterday” if we evaluate it tomorrow? Are such side-effects (using a volatile global value) permitted? Then how about localization? Can description be locale-aware without breaking the protocol? 

> On May 31, 2016, at 3:43 PM, Austin Zheng via swift-evolution <swift-evolution at swift.org> wrote:
> 
> My original v2 proposal draft suggested making value preserving and human readable descriptions orthogonal, but Chris and a few other people suggested they liked the originally suggested design better. I have a link in the "Alternatives" section to that original draft.
> 
> Austin
> 
> On Tue, May 31, 2016 at 3:22 PM, Dave Abrahams via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> 
> on Tue May 31 2016, Thorsten Seitz <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
> 
> > I agree with Vladimir. Having a value preserving representation is
> > orthogonal to a human readable representation.
> 
> I too think he's making a good point.  I could be missing something, but
> it seems to me we don't fully understand this design yet.
> 
> --
> Dave
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org <mailto:swift-evolution at swift.org>
> https://lists.swift.org/mailman/listinfo/swift-evolution <https://lists.swift.org/mailman/listinfo/swift-evolution>
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160531/bf0c6d46/attachment.html>


More information about the swift-evolution mailing list