[swift-evolution] Allow ' in variable/constant names?
Karl Wagner
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
> https://lists.swift.org/mailman/listinfo/swift-evolution
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?
Karl
More information about the swift-evolution
mailing list