Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> - The logic of Golang is straightforward, e.g. you need to import the package fmt to do a fmt.Println("") in Golang but you do not need to explicitly import anything to do a System.out.println("") in Java.

You don't need to import println in Go[0]. The logic is exactly the same[1]: there's a pre-imported "prelude" (java.lang in Java, builtin in Go) and you import the rest.

> - Golang works on every computers and installing it is simple (simpler than installing Java and Eclipse).

Why do you have to install go alone but java and eclipse?

[0] https://play.golang.org/p/ZWLaVuJNgq you don't need to import append or cap or complex128 either

[1] and the same as in more or less every language out there



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

Search: