On that theme, this year we also revised our code of conduct to better support inclusivity in the Go community.Go is another interesting computer language. Exmple:
package main
import ("fmt")
func main() {
// typed constant declaration
const Pi float64 = 3.14
// multiple typed-constant declaration
const (
Tau float64 = Pi * 2
E float64 = 2.718
)
fmt.Println("Pi:", Pi, "\nTau:", Tau, "\nE:", E)
}
This works for a scripter, in fact one could make join an attachment to a Go interpreter. But it uses the dot to select methods on an object, an advance that opens up an object protocol.
No comments:
Post a Comment