[Swift, Playgrounds] Improve "quicklook" description of enums in playgrounds

Originator:janoschhildebrand
Number:rdar://17661944 Date Originated:14-Jul-2014
Status:Duplicate of 16426819 (Closed) Resolved:
Product:Developer Tools Product Version:Xcode 6 - Beta 3 (6A254o)
Classification:Enhancement Reproducible:NA
 
Summary:
In playgrounds, all enum values are displayed (quicklooked) as "(Enum Value") which is of course a very opaque description that is seldom of any use.

It would be great if this could be improved to show:
1. The actual case of the enum type // important
2. Descriptions of the associated values if any // nice to have

For example:

enum Foo {
    case Bar(String, String, Int)
}

// Might simply be displayed as ".Bar("Foo's Drinking Establishment", "Main street", 42)"
let foo = Foo.Bar("Foo's Drinking Establishment", "Main street", "42")

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Xcode 6 - Beta 3 (6A254o)
Swift version 1.0 (swift-600.0.38.7)
OS X 10.10 (14A283o)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!