[swift-evolution] ++ and --

Patrick Pijnappel patrickpijnappel at gmail.com
Wed Mar 23 06:03:45 CDT 2016


Note that += 1 and -= 1 compile to the same assembly as ++ and -- respectively
and therefore have identical performance.

On Wed, Mar 23, 2016 at 9:44 PM, Biala via swift-evolution <
swift-evolution at swift.org> wrote:

> Hello,
>
> I would like to share my opinion on -- and ++ operators...
>
> I think that ++ and — should stay and MUST be implemented as faster
> operations than += and -=.They have very specific job after all and that is
> the general understanding. If you fail to implement them as faster
> operators that will really look as major weakness of SWIFT development
> team. Swift is still too slow – try working with Arrays so having these
> faster operators that are very commonly used will be a plus. Another plus
> will be that you will not break tons of existing code. Breaking existing
> code is always considered as an architecture weakness and always have a
> negative impact on the whole developers community – take a look at
> Microsoft for example they often do that mistake…. Android on the other
> hand is till that moment always building over the old (however they make
> other mistakes [image: 😉]
>
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160323/39bd3fd5/attachment.html>


More information about the swift-evolution mailing list