But no ceremony is necessary in the cases where types can be inferred - and in the cases where types can't be inferred you probably do want to to be explicit about them even in a dynamic language.
Re:Hard-won lessons: Five years with Node.js
by coldtea on Thursday April 20, 2017 @06:36AM
(#14155495)
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().
Re:Hard-won lessons: Five years with Node.js
by hota_mazi on Thursday April 20, 2017 @10:50AM
(#14157143)
How is
if __name__ == "__main__":
main()
different from a main()?
Re:Hard-won lessons: Five years with Node.js
by cookiecaper on Thursday April 20, 2017 @01:52PM
(#14159068)
It's only needed if you're importing the file as a library/module somewhere.
Re:Hard-won lessons: Five years with Node.js
by squeaky-clean on Thursday April 20, 2017 @12:29PM
(#14158177)
You don't even need that.
print("hello world")
will run just fine
Less ceremony.