[swift-evolution] [Proposal] Revamp the playground quicklook APIs

Connor Wakamo cwakamo at apple.com
Wed Jan 17 17:29:54 CST 2018

> On Jan 13, 2018, at 2:18 PM, Erica Sadun <erica at ericasadun.com> wrote:
> On Jan 11, 2018, at 1:40 PM, Jonathan Hull via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>> On Jan 11, 2018, at 11:22 AM, Connor Wakamo via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>> That’s very reasonable. I’ll update the proposal to use CustomPlaygroundConvertible (unless I or someone else can come up with a really good “Thing” for a name like CustomPlaygroundThingConvertible, as that would even better match CustomStringConvertible/CustomDebugStringConvertible).
>> CustomPlaygroundPreviewConvertible?
> I'm a heavy user of `CustomPlaygroundQuickLookable` (for example, https://i.imgur.com/zOa5OUZ.jpg <https://i.imgur.com/zOa5OUZ.jpg>).  Although I'm happy with the current name, to make it more in line with other convertibles, perhaps:
> * CustomPlaygroundQuickLookConvertible
> * CustomPlaygroundDisplayConvertible
> * CustomPlaygroundValuePresentationConvertible
> * CustomPlaygroundPresentationConvertible

Using the existing name for the new protocol isn’t on the table, as that would present a source compatibility issue which we couldn’t paper over. These names are interesting; I’ll at the very least include them in “alternatives considered” in my updated proposal.

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

More information about the swift-evolution mailing list