Open jamesray1 opened 6 years ago
Ah, but they are integers, so it rounds 17*4/9 = 7 + 5/9 down to 7 (discarding the extra fraction).
You should add a note about that for newcomers.
Then on the next page:
package main
import "fmt"
var c, python, java bool
func main() {
var i int
fmt.Println(i, c, python, java)
}
You should explain for newcomers that vars are instantiated to the zero state for their type (e.g. 0, false) when declared without explicit instantiation.
Ah I see that the latter is done in basics/12, you could add a cross-reference to that.
Context: http://127.0.0.1:3999/basics/7
In the tour, when you run this, it returns 7 10.
However, 17*4/9 is not equal to 7.