-1. Why? Why not use foo2 instead? Is ' so much better? Instead, I'd personally love better character support in Swift in the future and allow a Character literals using ' - just like in C, except with Unicode support:
let myChar = 'x' // Character let myChar2 = '∃' // Character let myChar3 = '\0' // NUL Character let myChar4 = 'xyz' // Error from compiler > On Jan 11, 2017, at 2:08 PM, Tuur Anton via swift-evolution > <[email protected]> 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 > [email protected] > https://lists.swift.org/mailman/listinfo/swift-evolution _______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
