[swift-evolution] Proposal: Make it easier to use unicode identifiers in Swift.

Jordan Rose jordan_rose at apple.com
Fri Jan 15 17:37:27 CST 2016


Hi, Amir. What benefit does this feature have for a Swift programmer? In my mind, it makes it harder to reason about what something does, because there may now be multiple names for the same variable.

Jordan

> On Jan 14, 2016, at 15:34, Amir Michail via swift-evolution <swift-evolution at swift.org> wrote:
> 
> In particular, allow the programmer to use text instead of unicode when convenient.
> 
> For example:
> 
> unicodealias alpha = α
> 
> let alpha = 5.0
> 
> print("α=\(α)”)
> 
> Every once in a while, the programmer could request that the IDE/editor transform the text names to their unicode counterparts as determined by unicode aliases throughout the source.
> 
> 
> 
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list