[swift-evolution] Proposal: Unicode visualization annotations in declarations.
Amir Michail
amichail at gmail.com
Sat Jan 16 13:51:25 CST 2016
Example source:
let alpha/𝛼 = 5
print(“alpha=\(alpha)”)
An IDE/editor that understands these visualization annotations would show this source as:
let alpha/𝛼 = 5
print(“alpha=\(𝛼)”)
Moving the cursor over 𝛼 would tell you in the status bar that this is a visualization for “alpha”.
Note that in the source, the unicode character only appears in the visualization annotation.
Here’s another example:
enum Suit { case Heart/♡, Diamond/♢, Spade/♠︎, Club/♣︎ }
let x = Suit.Heart
In an IDE/editor that supports visualization annotations, the following would be shown:
enum Suit { case Heart/♡, Diamond/♢, Spade/♠︎, Club/♣︎ }
let x = Suit.♡
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160116/324c24fa/attachment.html>
More information about the swift-evolution
mailing list