Make dur a property?

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Jan 23 22:33:29 PST 2013


On 1/23/13 10:02 PM, Nick Sabalausky wrote:
> First of all, spacing helps:
>
> a.map!( a =>  foo(a,b).map!(a=>2*a)() )().days().ago().writeln()
>
> So does not trying to cram everything into a one-liner:
>
> auto descriptiveName = a =>  foo(a,b).map!(a=>2*a)();
> a.map!descriptiveName().days().ago().writeln()
>
> And then there's a few () in there, but not only do I fail to see how
> those hurt anybody, they make perfect sense since "days", "ago" and
> "writeln" are not data access, they're actions (even if maybe a little
> too cutely-named in the case of "ago").

If you find this not wanting and not improvable we might have reached an 
irreducible position.

Andrei


More information about the Digitalmars-d mailing list