https://play.golang.org/p/Pvhg_npsg3Y
(padded with spaces - press fmt for output)
output :
package main
import "fmt"
func main() {
i, h, rs := 1, 1000, 160
for y := i * (h / rs); y < (1+i)*(h/rs); y++ {
fmt.Println(y)
}
}
note the extra spaces in the initialiser of i, but no spaces in the
condition
the iterator also is padded with spaces if it contains brackets etc (not
shown here)
...
Is this an intentional readability thing, or just a bug ?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.