<div dir="ltr">I'd be willing to keep "++" and "--" if they stopped having a return type. "x++" is fine; "let y = x++" is where we lose clarity, so I'd much prefer to see that expressed as "let y = x + 1; x++".</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 23, 2016 at 1:10 PM, Ergin Bilgin via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"> First of all, I am not a big fan of removal of "++" operator. Still, "+= 1" has the same performance with "++" but since I like the comfort of writing just "++", I will just write an extension when Swift 3 will be released. I know many people who will do the same.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 23 March 2016 at 13:09, Tino Heth via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div style="word-wrap:break-word"><span><div><blockquote type="cite"><div><span style="color:rgb(5,0,0);font-family:Georgia,serif;font-size:inherit;font-style:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,254,254);float:none;display:inline!important">I think that ++ and — should stay and MUST be implemented as faster operations than += and -=.</span></div></blockquote></div></span><div><p style="margin:0.0px 0.0px 0.0px 0.0px">If there is an easy way to make operations faster, imho that should be applied to every method ;-)</p><div><br></div></div><div>Jokes apart, compilers of today know some really smart tricks, so if "+= 1" is slower than "++", I'd consider that a bug.</div></div><br></div></div><span class="">_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></span></blockquote></div><br></div>
<br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div>