[go-nuts] Repeated functions with the same output in loops

2018-09-06 Thread mustafa katipoğlu
If I use len() function inside of a foor loop , does it calculates the output each time? or if the output will be the same(like arrays) will it calculates the length of the function again ? var letterRunes = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_") b := make([

[go-nuts] Re: Maybe vet can detect this?

2018-09-06 Thread mustafa katipoğlu
check this documentation. https://golang.org/doc/faq#nil_error 6 Eylül 2018 Perşembe 22:15:17 UTC+3 tarihinde Burak Serdar yazdı: > > https://play.golang.org/p/KLXvFNCewyW > > Here, f2() never returns nil, because the returned "nil" valued > interface is of type *int. > > It would be really ni