Hacker News new | ask | show | jobs
by bheadmaster 828 days 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!");
1 comments

To be that guy, not quite a python level of tersity!
Well, 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.
# 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.