[swift-users] Why there's no Character literals?

王 黎明 uomb at outlook.com
Thu Jul 7 04:35:09 CDT 2016


In Swift, we must specify the type for Character variables(because there’s no Character literals):

let eol: Character = “\n”


it's not a big problem, but, Is it the unique case that can’t use type infer?






More information about the swift-users mailing list