<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Apr 18, 2016, at 8:21 PM, Joe Pamer via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">I propose that we fully eliminate implicit bridging conversions in Swift 3. This would mean that some users might have to introduce introduce a few more ‘as’ casts in their code, but we would remove another special case from Swift's type system &nbsp;and be able to further simplify the compiler. If anyone is curious and would like to take this model for a spin, I’ve pushed an experimental branch that implements this proposed change,&nbsp;<font face="Menlo" class="">inhibit-implicit-conversions</font>.</div></div></div></blockquote><br class=""></div><div>What happens with string literals? Are they implicitly converted to NSString as necessary? Which of the following will be legal?</div><div><br class=""></div><div>&nbsp; &nbsp; import Foundation</div><div>&nbsp; &nbsp; func s(_ str: String) { }</div><div>&nbsp;&nbsp; &nbsp;func ns(_ str: NSString) { }</div><div><br class=""></div><div>&nbsp; &nbsp; let str: String = "foo"</div><div>&nbsp; &nbsp; let nsstr: NSString = "foo"</div><div><br class=""></div><div>&nbsp; &nbsp; NSLog("foo")</div><div>&nbsp; &nbsp; NSLog(str)</div><div>&nbsp; &nbsp; NSLog(nsstr)</div><div><br class=""></div><div><div>&nbsp; &nbsp; s("foo")</div><div>&nbsp; &nbsp; s(str)</div><div>&nbsp; &nbsp; s(nsstr)</div><div class=""><br class=""></div><div class=""><div>&nbsp; &nbsp; ns("foo")</div><div>&nbsp; &nbsp; ns(str)</div><div>&nbsp; &nbsp; ns(nsstr)</div></div><div><br class=""></div><div class=""><br class=""></div></div><div>--&nbsp;</div><div>Greg Parker &nbsp; &nbsp; <a href="mailto:gparker@apple.com" class="">gparker@apple.com</a> &nbsp; &nbsp; Runtime Wrangler</div><div><br class=""></div><div><br class=""></div></body></html>