[swift-evolution] [Manifesto] Completing Generics

Howard Lovatt howard.lovatt at gmail.com
Thu Mar 10 16:02:59 CST 2016


My apologies I didn't realise you could do that in Swift.

  -- Howard.

On 11 March 2016 at 08:43, Joe Groff <jgroff at apple.com> wrote:

>
> On Mar 10, 2016, at 1:43 PM, Howard Lovatt <howard.lovatt at gmail.com>
> wrote:
>
> @T.J.,
>
> Swift does not allow overloading on return type. You cannot write:
>
> func f() -> Int
>
> func f() -> String
>
>
> You can.
>
> -Joe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160311/55ea6046/attachment.html>


More information about the swift-evolution mailing list