[swift-evolution] What about a VBA style with Statement?
tseitz42 at icloud.com
Tue Apr 19 03:32:33 CDT 2016
Returning self is not needed for method cascades in Smalltalk. Actually the return values are ignored because all methods of a cascade are sent to the same receiver. Only the last return value is used as result of the whole cascade.
The method cascade in Smalltalk is written as follows:
receive method1: x; method2: y; method3: z.
i.e. messages which ar part of the cascade are separated by ';' and the statement is finished by '.' like all statements in Smalltalk.
> Am 14.04.2016 um 17:23 schrieb Tino Heth via swift-evolution <swift-evolution at swift.org>:
>> (in Smalltalk, like in Swift?, if i remember correctly, ‘self’ is implicitly
>> returned in absence of a return value and can be ignored.
> I'm a big fan of returning self — its much more useful than void…
> But it seems the Swift-community doesn't like method chaining.
> swift-evolution mailing list
> swift-evolution at swift.org
More information about the swift-evolution