[swift-evolution] [swift-dev] SE-0047 - Defaulting non-Void functions so they warn on unused results
Erica Sadun
erica at ericasadun.com
Mon Oct 31 13:35:37 CDT 2016
> On Oct 31, 2016, at 12:14 PM, Joe Groff via swift-evolution <swift-evolution at swift.org> wrote:
>
>>
>> On Oct 30, 2016, at 11:09 AM, Robert Widmann via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>>
>> If the methods return a reference to self it indicates that you should probably just chain expressions together rather than using a big wall of statements (Smalltalk encourages the same pattern, funnily enough).
>
> Smalltalk specifically has builtin syntax for method cascades, which seem to me like a nicer language-level solution to chaining method calls without requiring them to be manually defined in a "builder pattern" style.
>
> -Joe
I hope we'll see method chaining in 4 phase 2
-- E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161031/399fe3c9/attachment.html>
More information about the swift-evolution
mailing list