▲ | rhdunn a day ago | |
It's not gone per se -- you can still write out the long form version if you want (this is required for backward compatibility). What's now permitted is: 1. a simpler way of declaring a main method on a class -- you don't need the public or static, and the args is optional, so you can declare a `void main() { ... }` method on a constructable class; 2. declaring a main function (and other variables/functions) outside of a class -- here, the startup code will handle calling the main function, although I don't think the ability to call anonymous functions currently extends outside of the main function/file. |