2 Key Word "int" is not reserved. It can be a function name.

GN posted by Jingtao 95 days ago  

Here is a little bit I want to share  from my own experience.

There was one time I typo-ed a initialization function name to "int"
func int(){
which should be
func init(){
but the compiler passed it.Then after that, each time when I try to do a type casting,  int(some_int_variable), it stops me. :(
(It took me a month to found this)

Register to comment or vote on this story