Hacker News new | past | comments | ask | show | jobs | submit login

It's not just the types, it's the whole APIs, culture etc.

Java, for example, is no picnic, whether it can now infer some types or not.

In Python I don't even need a main().




How is

    if __name__ == "__main__":
        main()
different from a main()?


It's only needed if you're importing the file as a library/module somewhere.


You don't even need that.

  print("hello world")
will run just fine


It's different in that it's optional in Python.


I agree Java is a high-ceremony language, but not all statically typed languages are like that.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: