top | item 10934061

(no title)

rjbrock | 10 years ago

Agreed 100%. This is actually the reason that I have been picking up go lately, you get some of the more lenient syntax of python, with static typing guarantees.

discuss

order

mike_hearn|10 years ago

I'm surprised that people only seem to be considering Go as an upgrade to static typing, from languages like Python or Ruby.

Kotlin has a very lightweight syntax with lots of type inference as well, but also has many features that people often seem to miss in Go. It also has transparent access to all Java libraries, which is a huge number, which is a big benefit. It seems like a natural path for people who liked dynamic languages. It's much less well known, of course.

https://kotlinlang.org/

rjbrock|10 years ago

Well there are a few reasons that I decided to pick up go rather than something like kotlin.

1. No jvm needed. This may not be a benefit if you need to access java libraries, i just like that you can compile a binary. 2. Great concurrency support 3. Seems to be more popular. This may sound like a poor reason to choose a language, but if its more popular there would be better documentation, libraries, ide support, etc

pcwalton|10 years ago

Syntactically, Go is less lenient than Java, C#, or most other freeform languages, due to, for example, automatic semicolon insertion.

rjbrock|10 years ago

Maybe lenient isnt the best description. It is much more concise without losing static typing.

Type inference like this: myvar := myFunc() makes coding feel like its a dynamic language