loading...

re: Why do some languages disrupt some common and habitual conventions? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: The long & short of it is that the creators decided that these idioms convey the concepts the language uses better. I'm not familiar with Go's ...
 

There's an explanation in the official Go blog - blog.golang.org/gos-declaration-sy.... Basically they chose that syntax because it's easier to read.

var books [5]string

reads as "declaring a var named books as an array of 5 strings"

 
code of conduct - report abuse