TestsTested | ✓ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Apr 2016 |
SPMSupports SPM | ✗ |
Maintained by George Dan.
‘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.
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.
OND is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "OND"
George Dan, [email protected]
OND is available under the MIT license. See the LICENSE file for more info.