Latest 0.1.2
Homepage https://github.com/ninjaprawn/OND
License MIT
Platforms ios 8.0
Authors

Operator Not Deprecated

CI Status
Version
License
Platform

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.

Latest podspec

{
    "name": "OND",
    "version": "0.1.2",
    "summary": "Bring back deprecated operators.",
    "homepage": "https://github.com/ninjaprawn/OND",
    "license": "MIT",
    "authors": {
        "George Dan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ninjaprawn/OND.git",
        "tag": "0.1.2"
    },
    "social_media_url": "https://twitter.com/theninjaprawn",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "OND/Classes/**/*"
}

Pin It on Pinterest

Share This