[swift-evolution] Allow ' in variable/constant names?
razielim at gmail.com
Wed Jan 11 07:43:53 CST 2017
> On 11 Jan 2017, at 14:08, Tuur Anton via swift-evolution <swift-evolution at swift.org> wrote:
> I often have related variables. Would be nice to just add ' like I can in Haskell:
> let foo = "asdf"
> let foo' = "asdf2"
> What do you think?
> swift-evolution mailing list
> swift-evolution at swift.org
Ooooh… the mathematician in me would love that.
let foo = …
let foo’ = …
let foo’’ = …
let foo’’’ = …
But I suspect the additional complexity to the parser isn’t worth it. When are two bars just two bars, and when are they an empty string literal?
More information about the swift-evolution