<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=""><div><br class=""><blockquote type="cite" class=""><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Consider these two alternative ways of writing the same code:</div><div class=""><a href="https://gist.github.com/technogen-gg/17b6d5e13c13080850dceda28cfe1caa" class="">https://gist.github.com/technogen-gg/17b6d5e13c13080850dceda28cfe1caa</a></div></div></div></blockquote><br class=""></div><div>Great example — the first is better.</div><div>But not because of extensions:&nbsp;</div><div><span class="pl-c" style="box-sizing: border-box; color: rgb(106, 115, 125); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre;">//</span><span style="color: rgb(106, 115, 125); font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class=""> MARK: - String Compatibility</span></div></body></html>