[swift-evolution] Reconsider ++ and -- operators removal and prevent other well-known operators from change

Tino Heth 2th at gmx.de
Sun Jan 31 08:19:59 CST 2016


> I do not know how far the Swift is to the adolescence, but it is certain that teenagers are rebels. There's something very good at it. In most cases they are to be certain. But in some things they regret later.
Children have to learn their own lessons — and I guess re-adding "++" wouldn't be as complicated as a big tattoo on your neck ;-)

My first thought on the removal was "we'll see many custom post-increment operators soon", and that may be true; but in the meantime, I came to the conclusion that I won't define those custom operators, but rather configure my system to replace "++" with " += 1":
Typing the old operator is definitely faster, but I don't mind if it's turned into something else automatically (when there is no performance gain for pre-increment, I've always preferred the post-variants).

Tino
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160131/0fa970c0/attachment.html>


More information about the swift-evolution mailing list