Dart and D: features that could be used in D, D->dart for web programming
Timothee Cour
thelastmammoth at gmail.com
Thu Feb 27 16:29:12 PST 2014
On Thu, Feb 27, 2014 at 12:56 PM, Walter Bright
<newshound2 at digitalmars.com>wrote:
> On 2/27/2014 2:19 AM, Timothee Cour wrote:
>
>> * cascade operations: they perform a series of operations on the members
>> of a
>> single object:
>> foo.bar(1)..baz(3)
>> equivalent to:
>> foo.bar(1)
>> foo.baz(3)
>>
>
> D has ranges and algorithms to conveniently chain operations.
cascade != chaining:
cascade:
a.f1..f2..f3
<=>
a.f1
a.f2
a.f3
chaining:
a.f1.f2.f3
<=>
((a.f1).f2).f3)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20140227/bb26efd7/attachment.html>
More information about the Digitalmars-d
mailing list