3 ms·
Not really. It's very verbose compared to Python, almost like Java.
by ex_amazon_sde 10y ago
Not really. It's very verbose compared to Python, almost like Java.
- the_duke 10y agoNoo that's an overstatement. Of course it's not as clean as Python, it's statically typed. But type inference makes code way cleaner than your typical Java code (Javas type inference is improving, though).
- idobai 10y ago> Noo that's an overstatement. No, it isn't since go lacks generics and dynamic types - which helps to reduce boilerplate(even if the latter isn't that effective). > Of course it's not as clean as Python, it's statically typed. There are cleaner statically typed languages then python - look at fp languages with type inference(ML dialect) > But type inference makes code way cleaner than your typical Java code (Javas type inference is improving, though). The typical java code is legacy, but for a fair comparison you should check out projectlombok [1]. Otherwise, Java is on the JVM which means there are alternatives like Scala/Kotlin etc. [1]https://projectlombok.org/ https://projectlombok.org/