2 ms·
Kotlin will get you these without the: Foo foo = new Foo(); Nonsense. Highly recommended.
by mixmastamyk 9y ago
Kotlin will get you these without the:
Foo foo = new Foo();
Nonsense. Highly recommended.
- singularity2001 9y agoKotlin will be huge once HelloWorld takes less then 8sec to compile
- mixmastamyk 9y ago? Instantaneous on my box. Maybe time for a pentium overdrive. ;-)
- vram22 9y ago> Foo foo = new Foo(); The Golang FAQ calls that stuttering; good term, I thought. https://golang.org/doc/faq https://golang.org/doc/faq See section: What are the guiding principles in the design? "Stuttering (foo.Foo* myFoo = new(foo.Foo)) is reduced by simple type derivation using the := declare-and-initialize construct."
- JoeAltmaier 9y agoOr my favorite, for declaring/initializing static members: Foo::Bar *Foo::foobar = new Foo::Bar(Foo::Bar::FOOBARENUMVALUE);