OND 0.1.2

OND 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2016
SPMSupports SPM

Maintained by George Dan.



OND 0.1.2

Operator Not Deprecated

What is this?

‘Operator Not Deprecated’ is a small project I wrote that brings back the operators deprecated in 004 of swift-evolution proposals. Though I agree with the removal, some people might like the old style.

Usage

NOTE: These operators will change back to 2*symbol in Swift 3

There are currently 4 operators that have been re-implemented. They are:

let a = +++x  // pre-increment  - returns input value after mutation
let b = x+++  // post-increment - returns copy of input value before mutation
let c = ---x  // pre-decrement  - returns input value after mutation
let d = x---  // post-decrement - returns copy of input value before mutation

Small tip: You don’t have to assign the result of the operator.

Installation

OND is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "OND"

Author

George Dan, [email protected]

License

OND is available under the MIT license. See the LICENSE file for more info.