4 ms·
Good that they got rid of the class/public static void/string[] Args boilerplate, but if they just went one step forward and declared implicit main function as
by bheadmaster 3y ago
Good that they got rid of the class/public static void/string[] Args boilerplate, but if they just went one step forward and declared implicit main function as top-level scope of a file, we could've got to a Python level of tersity. Just imagine!
System.out.println("Hello world!");
- aidos 3y agoTo be that guy, not quite a python level of tersity!
- fuzztester 3y ago# Python 3 p = print # the print() function # Now we can do: p("Hello world") # endlessly, in this file. Shorter by 17-odd characters than the above Java version.
- bheadmaster 3y agoWell, if they added System.out in the default context, it could've been just println("Hello world!") I think that's as far as you can go.