Consistency, Templates, Constructors, and D3

David Nadlinger see at klickverbot.at
Fri Aug 24 15:49:11 PDT 2012


On Friday, 24 August 2012 at 17:04:49 UTC, Andrej Mitrovic wrote:
> On 8/24/12, Nathan M. Swan <nathanmswan at gmail.com> wrote:
>> Class.new().method() vs. (new Class()).method()
>
> I prefer the latter because it's more explicit that you're 
> throwing
> away an object after invocation

I'm not sure if I follow you here – when chaining methods, you 
are _always_ throwing away the return value temporaries…

David


More information about the Digitalmars-d mailing list