apple / swift-xcode-playground-support

Logging and communication to allow Swift toolchains to communicate with Xcode.
Apache License 2.0
279 stars 64 forks source link

[SR-9673] Swift playgrounds do not show when a value is optional #63

Open mbrandonw opened 5 years ago

mbrandonw commented 5 years ago
Previous ID SR-9673
Radar None
Original Reporter @mbrandonw
Type Improvement

Attachment: Download

Additional Detail from JIRA | | | |------------------|-----------------| |Votes | 0 | |Component/s | Xcode Playground Support | |Labels | Improvement | |Assignee | None | |Priority | Medium | md5: e0cc4660581b0838a1edca581e173d81

Issue Description:

Optional values are rendered in the sidebar without an indication that they are optional. This leads to confusion as to what value a variable truly holds. The optionality of the value should be displayed somehow, perhaps as:

Optional(1)

It does correctly show `nil` when the value is `nil`.

belkadan commented 5 years ago

cc cwakamo (JIRA User)