In C/C++/Java/Go, we use , to separate parameters:
(a int, b int)
In Objective C, we use : to indicate parameters:
:(int)a :(int)b
In Swift, we have to use both : and , :
(a:int, b:int)
Is the redundancy necessary?
In C/C++/Java/Go, we use , to separate parameters:
(a int, b int)
In Objective C, we use : to indicate parameters:
:(int)a :(int)b
In Swift, we have to use both : and , :
(a:int, b:int)
Is the redundancy necessary?
Swift might have external and internal parameter names:
(external internal:Int)
It would create a lot of ambiguity if there wasn't distinctive separators.