<html><head></head><body><div style="font-family: 'SFUIText-Regular', 'SF UI Text'; font-size: 12pt; color: rgba(0, 0, 0, 1.0);"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Yes, but then a similar complaint could be made that I <i class="">wanted</i> a String this time. The only real way to tell the difference is to use something like single quotes.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 10, 2016, at 14:03, Rick Mann via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><blockquote type="cite" class="">On Jul 10, 2016, at 11:44 , Saagar Jha via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:<br class=""><br class="">Well, what if you wanted to create a String with one character? There’s no way to differentiate.<br class=""></blockquote><br class="">That hardly seems like the justification. In that case, you'd specify the type:<br class=""><br class=""> let s: String = '\n'<br class=""><br class=""><br class=""><blockquote type="cite" class=""><br class=""><blockquote type="cite" class="">On Jul 7, 2016, at 02:35, 王 黎明 via swift-users [<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>](<a href="mailto:swift-users@swift.org" class="">mailto:swift-users@swift.org</a>) wrote: ><br class=""></blockquote><br class="">In Swift, we must specify the type for Character variables(because there’s no Character literals):<br class=""><br class="">let eol: Character = “\n”<br class=""><br class="">it's not a big problem, but, Is it the unique case that can’t use type infer?<br class=""><br class="">swift-users mailing list <a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a> <a href="https://lists.swift.org/mailman/listinfo/swift-users" class="">https://lists.swift.org/mailman/listinfo/swift-users</a><br class=""><br class="">-- <br class="">-Saagar Jha<br class="">_______________________________________________<br class="">swift-users mailing list<br class=""><a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></blockquote><br class=""><br class="">-- <br class="">Rick Mann<br class=""><a href="mailto:rmann@latencyzero.com" class="">rmann@latencyzero.com</a><br class=""><br class=""><br class="">_______________________________________________<br class="">swift-users mailing list<br class="">swift-users@swift.org<br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></div></blockquote></div><br class=""></div></div></div></body></html>