class extensions
Jarrett Billingsley
kb3ctd2 at yahoo.com
Wed Aug 29 20:22:31 PDT 2007
"kris" <foo at bar.com> wrote in message news:fb5742$nek$1 at digitalmars.com...
>
>> Plus one can achieve a very nice syntactic sugar for call chaining,
>
> D provides that already, no? Tango supports call-chaining extensively.
I think by call-chaining he was referring to cases such as
join(reverse(split(toUpper(str)))) vs. str.toUpper.split.reverse.join().
The latter is arguably much more readable than the former.
More information about the Digitalmars-d
mailing list