<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Of course not. Struct Set is commonly known. </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="georgia, serif">let foo:Set = [1,2,3,4]</font></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><font face="georgia, serif">let bar:Set&lt;Int&gt; = [1,2,3,4]</font></blockquote><div><br></div><div>If you do not specify them as Sets, foo and bar will be Arrays.</div><div><br></div><div>Zhaoxin</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 7, 2016 at 5:35 PM, 王 黎明 <span dir="ltr">&lt;<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In Swift, we must specify the type for Character variables(because there’s no Character literals):<br>
<br>
let eol: Character = “\n”<br>
<br>
<br>
it&#39;s not a big problem, but, Is it the unique case that can’t use type infer?<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-users</a><br>
</blockquote></div><br></div>