4 ms·
>So what's that mysterious reason that makes writing dynamically typed language faster? Less ceremony.
by coldtea 10y ago
>So what's that mysterious reason that makes writing dynamically typed language faster?
Less ceremony.
- lmm 10y agoBut 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.
- coldtea 10y agoIt'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().
- lmm 10y agoI agree Java is a high-ceremony language, but not all statically typed languages are like that.
- hota_mazi 10y agoHow is if __name__ == "__main__": main() different from a main()?
- cookiecaper 10y agoIt's only needed if you're importing the file as a library/module somewhere.
- squeaky-clean 10y agoYou don't even need that. print("hello world") will run just fine
- coldtea 10y agoIt's different in that it's optional in Python.