[swift-evolution] [pitch] Eliminate the "T1 -> T2" syntax, require "(T1) -> T2"
L. Mihalkovic
laurent.mihalkovic at gmail.com
Fri Apr 22 14:27:42 CDT 2016
Void seems unequivocal, while () seems to beg for a context to be fully understood
Regards
> On Apr 22, 2016, at 8:28 PM, Erica Sadun via swift-evolution <swift-evolution at swift.org> wrote:
>
>
>> On Apr 22, 2016, at 12:08 PM, Vladimir.S via swift-evolution <swift-evolution at swift.org> wrote:
>> About the "Void".. I'm +1 on this idea, but asking myself if we can freely remove 'Void' from our language at all without any problem? Can't find the answer. It seems like we can, IMO using the syntax like () -> () is OK, clear and explicit, especially in "functional" word.
>
> I like having Void as a typealias of (), and would prefer to retain it in the language if possible.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160422/c85c5c73/attachment.html>
More information about the swift-evolution
mailing list