This small example is a little CLI tool to demonstrate how you can make use of the new error handling of Swift 2. It was part of my talk "Swift 2 - Error Handling".
- Clone the gist.
- Compile by
xcrun -sdk macosx swiftc main.swift
. - Run the executable and pass the amount as first argument. (
./main AMOUNT
)