Skip to content

Comment on With book on Go, Kernighan guides students at Princeton and beyondparent

Comments

- 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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.