Overwriting built-in functions
examples/overwriting-builtin-functions/overwriting_builtin_functions.go
package main import "fmt" func main() { len := len("abc") fmt.Println(len) // x := len("def") // cannot call non-function len (type int) }
- TODO: Why does Go allow for this without any complaint?