I\'m going through the iOS tutorial from Apple developer page.
It seems to me that protocol
and interface
almost have the same functionality.>
Just adding one thing because I've been checking protocols combining:
you can combine protocols at any point with the protocol<> keyword.
This is no longer true. Based on this: https://github.com/apple/swift/blob/master/test/type/protocol_composition.swift
This is correct:
func foo ( var1 : A & B ){}