|
|
|
|
|
by okeuro49
828 days ago
|
|
I really dislike this feature. It's better to just say "we will come to this concept later", rather than make a fake syntax that does this (taken from the JEP) behind the scenes: new Object() {
// the implicit class's body
}.main(); It adds more confusion, as you are left explaining that you could not really run an instance method without instantiating the class -- it was just something fake for beginners. |
|