Hi,
I come from C/C++/Java background - and some awk/perl/ruby too -
decided to give Go a go ;-)
Just started with the gotour - and am loving Go - looks kind of crisp and starched...
Some questions:
1. Why the var keyword - There is nothing like val (to indicate
immutability)? So why not just drop it...
2. Does Go have/supports global variables...
(Global as in C)
works...
Constraining the visibility/scope of variables is a big
theme - (File level "static" in C/C++, package variable in
java)
How does Go go with globals ;-)
Or they are kind of package variables? Or field variables
(as in Java) - package being a namespace?
3. Type inference: What is the rationale for having type
inference with := (within a function) - and not outside?
Why not provide for type inference everywhere?
4. Why to have
var z []int = []int{1,2,3}
and not
var z int [] = int[]{1,2,3}
5. Not a question - case/fallthrough is nice ;-)