<div dir="ltr"><p>Well, what if you wanted to create a <code>String</code> with one character? There’s no way to differentiate.</p>
<p>>
On Jul 7, 2016, at 02:35, 王 黎明 via swift-users <a href="mailto:[swift-users@swift.org](mailto:swift-users@swift.org)">[swift-users@swift.org](mailto:swift-users@swift.org)</a> wrote:
></p>
<blockquote>
<p>In Swift, we must specify the type for Character variables(because there’s no Character literals): </p>
<p>let eol: Character = “\n” </p>
<p>it's not a big problem, but, Is it the unique case that can’t use type infer? </p>
<hr>
<p>swift-users mailing list
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>
<a href="https://lists.swift.org/mailman/listinfo/swift-users">https://lists.swift.org/mailman/listinfo/swift-users</a></p>
</blockquote>
</div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">-Saagar Jha</div></div>