ixid:

Why is the new syntax so clunky?

thing myThing = new thing;

When it could be:

new thing myThing;

Sometimes you want to write:

class Foo {}
class Bar : Foo {}
void main() {
   Foo b = new Bar;
}

Otherwise there is 'auto' too:

auto myThing = new thing;

Bye,
bearophile

Reply via email to