|
|
|
|
|
by v-erne
1353 days ago
|
|
I wonder - why he has not take it a step further and propose to get rid of return type (void) also? It would look even more slick (add optional semicolons and we will get javascript out of this :)). main() {
println("Hello World");
} I know that this notation is traditionally reserved for constructors but I'm not 100% sure why we cannot differentiate between methods and constructors just by looking at class name? |
|
The proposed changes don’t have these negatives, while still provide benefits.