[swift-evolution] ++ and --

Tino Heth 2th at gmx.de
Wed Mar 23 06:09:26 CDT 2016


> I think that ++ and — should stay and MUST be implemented as faster operations than += and -=.

If there is an easy way to make operations faster, imho that should be applied to every method ;-)

Jokes apart, compilers of today know some really smart tricks, so if "+= 1" is slower than "++", I'd consider that a bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160323/9c084211/attachment.html>


More information about the swift-evolution mailing list