infinum ios talks #4 - making your swift networking code more awesome with result
Post on 08-Apr-2017
67 Views
Preview:
TRANSCRIPT
Result pattern in Swift
VEDRAN BUROJEVIĆ
EMAIL: VEDRAN.BUROJEVIC@INFINUM.CO TWITTER: @VBUROJEVIC
Swift 2.0 introduces error handling via throwing and catching ErrorType.
Result accomplishes the same goal by encapsulating the result instead of hijacking control flow.
💻
EXAMPLE REPO https://github.com/vburojevic/ResultExample
Any questions? VEDRAN.BUROJEVIC@INFINUM.CO @BUROJEVIC
Visit infinum.co or find us on social networks:
infinum.co infinumco infinumco infinum
top related