> I'm completely against replacing '->' by ':' it would make unreadable the 
> declaration of a function taking a closure as parameter, or returning one 
> (among other things).

Actually, I find this perfectly readable, though a little bit strange after so 
long with the current signatures:

        func indexOf(predicate: Element: Bool): Index? {
                for (i, elem) in zip(indexes, self) {
                        if predicate(elem) {
                                return i
                        }
                }
                return nil
        }

Where I *do* foresee big issues is with tuples. Take a look at this declaration:

        let tuple: (Int: Int, Bool: Bool)

Does `tuple` contain two unlabeled functions, or two labeled values?

-- 
Brent Royal-Gordon
Architechies

_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to