> On Oct 31, 2016, at 12:14 PM, Joe Groff via swift-evolution > <[email protected]> wrote: > >> >> On Oct 30, 2016, at 11:09 AM, Robert Widmann via swift-evolution >> <[email protected] <mailto:[email protected]>> 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
_______________________________________________ swift-evolution mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-evolution
