ceylon / ceylon-spec

DEPRECATED
Apache License 2.0
108 stars 34 forks source link

anonymous constructor expressions #1343

Open gavinking opened 9 years ago

gavinking commented 9 years ago

It would be interesting to explore whether anonymous constructor expressions could be useful, i.e. within the body of a class, letting you write new { ... }.

FroMage commented 9 years ago

I have occasionally wanted anonymous constructors in anonymous classes in Java. I don't quite remember why though.